自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 android 5.0 获取最近运行的应用

android 5.0 获取最近运行的应用

2015-07-21 11:38:13 5952 7

原创 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 5443

原创 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 1636

原创 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 1509

原创 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 4500 1

原创 Preference 隐藏

mAppPromotion = findPreference(PREF_KEY_APP_PROMOTION);this.getPreferenceScreen().removePreference(mAppPromotion);隐藏某一项Preference。

2013-08-12 18:50:21 2043

原创 Android NFC

最近开发一个工具,需要跳转到系统NFC设置。

2013-08-03 17:15:30 1317

转载 Android 代码打开GPRS

if (!isGPSEnable()) { ContentResolver resolver = mContext.getContentResolver(); Settings.Secure.setLocationProviderEnabled(resolver, LocationManager.GPS_PROVIDER, true); }此处 若正常 编译是不通过的 因为前提条件:root为了解

2013-07-16 10:27:37 2189

原创 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 1035

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除