- 博客(9)
- 收藏
- 关注
原创 Intent.ACTION_TIME_TICK 广播
代码笔记记录一下。Intent.ACTION_TIME_TICK 广播需要动态注册,不能在清单文件配置.TimeReceiver mBroadcastReceiver = new TimeReceiver();IntentFilter intentFilter = new IntentFilter();intentFilter.addAction(Intent.ACTION_TIME
2015-03-10 22:42:10
5536
原创 Listview 设置HeaderView 不可点击
LayoutInflater inflater=LayoutInflater.from(DeviceSettings.this); View view=inflater.inflate(R.layout.activity_no_devices, null); listView.addHeaderView(view, null,false);
2014-11-11 12:04:22
1681
原创 android 拍照剪切图片
protected void onActivityResult(int requestCode, int resultCode, Intent data) {switch (requestCode){case MessageModel.ASK_CAPTURE_PHOTO :if(resultCode == -1){ // 拍照保存成功返回cropImageUri(Uri.fro
2014-06-24 18:18:20
1551
原创 Android 打开状态栏 EXPAND_STATUS_BAR
try{ Object service = context.getSystemService("statusbar"); Class statusBarManager = Class.forName("android.app.StatusBarManager"); Method expand = status
2013-08-14 16:00:03
4574
1
原创 Preference 隐藏
mAppPromotion = findPreference(PREF_KEY_APP_PROMOTION);this.getPreferenceScreen().removePreference(mAppPromotion);隐藏某一项Preference。
2013-08-12 18:50:21
2112
转载 Android 代码打开GPRS
if (!isGPSEnable()) { ContentResolver resolver = mContext.getContentResolver(); Settings.Secure.setLocationProviderEnabled(resolver, LocationManager.GPS_PROVIDER, true); }此处 若正常 编译是不通过的 因为前提条件:root为了解
2013-07-16 10:27:37
2233
原创 The connection to adb is down, and a severe error has occured.
最近做手机设置遇到了(Ubuntu 下)The connection to adb is down, and a severe error has occured由于一直无法识别android 4.2 ,昨晚升级了adb ,今天出现了The connection to adb is down, and a severe error has occured该问题。解决办法是给adb 添加权限
2013-06-15 13:43:18
1064
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人