上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 51 下一页
摘要: 1: startService -------stopService (this will call onDestroy)2: bindService -------unbindService (this will call onDestroy)3: startService---bindServ... 阅读全文
posted @ 2015-10-26 20:01 demoblog 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1: AVTest CPU计算方法读取每个进程的 stat 文件 (/proc//stat)计算采样间隔10min下utime的差值minusUtime,stime的差值minusUtime,例如: 初始值Proc 1: utime=110 stime=200Proc 2: utime=400 st... 阅读全文
posted @ 2015-10-21 19:37 demoblog 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: reference : http://bbs.gfan.com/android-8001827-1-1.html2. 刷机和刷入recovery 建议参考 置顶教程: 【15年3月31日更新】Nexus 5 一键刷机教程,刷机一键搞定3. Root首先需要下载以下几个文件:TWRP recovery... 阅读全文
posted @ 2015-10-16 18:15 demoblog 阅读(1778) 评论(0) 推荐(0) 编辑
摘要: Intent intent = packageManager.getLaunchIntentForPackage(WEIXIN_PKGNAME);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TO... 阅读全文
posted @ 2015-10-10 21:15 demoblog 阅读(275) 评论(0) 推荐(0) 编辑
摘要: reference : http://stackoverflow.com/questions/24590533/how-to-get-recent-tasks-on-android-l/26885469#26885469String topPackageName ;if(Build.VERSION.... 阅读全文
posted @ 2015-10-09 21:53 demoblog 阅读(542) 评论(0) 推荐(0) 编辑
摘要: overide FragmentActivity onSaveInstanceState method like this. @Override public void onSaveInstanceState(Bundle outState) { super.onSaveIns... 阅读全文
posted @ 2015-10-09 11:31 demoblog 阅读(3583) 评论(0) 推荐(0) 编辑
摘要: http://stormzhang.github.io/android/2014/07/24/android-save-image-to-gallery/http://blog.csdn.net/xu_fu/article/details/39158747Adnroid中保存图片的方法可能有如下两种... 阅读全文
posted @ 2015-09-30 21:05 demoblog 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 方法一、在Activity的onCreate中添加如下代码getWindow().setFormat(PixelFormat.TRANSLUCENT); reference to : http://www.jb51.net/article/72719.htm 阅读全文
posted @ 2015-09-30 11:13 demoblog 阅读(1699) 评论(0) 推荐(0) 编辑
摘要: IntentFilter filter = new IntentFilter(); filter.setPriority(2147483647); filter.addAction(BluetoothAdapter.ACTION_STATE_... 阅读全文
posted @ 2015-09-23 10:36 demoblog 阅读(413) 评论(0) 推荐(0) 编辑
摘要: IntentFilter filter = new IntentFilter(); filter.setPriority(2147483647); filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION... 阅读全文
posted @ 2015-09-23 10:30 demoblog 阅读(3417) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 51 下一页