- 博客(8)
- 资源 (3)
- 收藏
- 关注
转载 android支付宝支付开发过程
版权声明:本文为博主原创文章,未经博主允许不得转载。支付宝开发流程:1、在支付宝申请一个账号并开通开发者功能和移动支付的功能。支付宝地址:https://auth.alipay.com/login/index.htm?goto=https%3A%2F%2Fopenhome.alipay.com%2Fdeveloper%2FisvApply.htm%3Fflag%3Daop支付宝移动
2017-01-20 11:01:39 333
原创 android 获取版本信息
private void getAppVersionInfo(){ try { PackageInfo pinfo = this.getPackageManager().getPackageInfo( this.getPackageName(), PackageManager.GET_CONFIGURATIONS);
2017-01-09 17:30:34 211
原创 android获取分辨率和密度
private void getDisplayMetrics(){ WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE); final int rotation = wm.getDefaultDisplay().getRotation
2017-01-09 17:27:59 292
原创 android 定时器的例子
初始化timerHandler = new Handler();serverRefresh = new ServerRefresh();1,启动定时器private void setRefresh() { if (timerHandler != null && serverRefresh != null) { timerHandler .postDe
2017-01-03 15:52:57 355
原创 android 自定义广播
首先先定义一个广播action 广播actiong String flag = “android.intent.action.MyBorad”1,接收广播private void startReceiver() { broadcastManager = LocalBroadcastManager.getInstance(getActivity()); intentF
2017-01-03 15:25:11 267
原创 android 自定义弹出窗口
首先自定义一个布局文件http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:background="@color/white"android:orientation="vertical"
2017-01-03 15:14:31 582
原创 android shape设置背景风格为圆角
http://schemas.android.com/apk/res/android"> android:topLeftRadius="10dp" android:topRightRadius="10dp" />
2017-01-03 14:27:20 368
原创 android 点击按键背景发生变化
btn_style.xmlhttp://schemas.android.com/apk/res/android"> btn_pressed.xmlhttp://schemas.android.com/apk/res/android">
2017-01-03 14:05:29 333
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人