摘要:
1: startService -------stopService (this will call onDestroy)2: bindService -------unbindService (this will call onDestroy)3: startService---bindServ... 阅读全文
摘要:
1: AVTest CPU计算方法读取每个进程的 stat 文件 (/proc//stat)计算采样间隔10min下utime的差值minusUtime,stime的差值minusUtime,例如: 初始值Proc 1: utime=110 stime=200Proc 2: utime=400 st... 阅读全文
摘要:
reference : http://bbs.gfan.com/android-8001827-1-1.html2. 刷机和刷入recovery 建议参考 置顶教程: 【15年3月31日更新】Nexus 5 一键刷机教程,刷机一键搞定3. Root首先需要下载以下几个文件:TWRP recovery... 阅读全文
摘要:
Intent intent = packageManager.getLaunchIntentForPackage(WEIXIN_PKGNAME);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TO... 阅读全文
摘要:
reference : http://stackoverflow.com/questions/24590533/how-to-get-recent-tasks-on-android-l/26885469#26885469String topPackageName ;if(Build.VERSION.... 阅读全文
摘要:
overide FragmentActivity onSaveInstanceState method like this. @Override public void onSaveInstanceState(Bundle outState) { super.onSaveIns... 阅读全文
摘要:
http://stormzhang.github.io/android/2014/07/24/android-save-image-to-gallery/http://blog.csdn.net/xu_fu/article/details/39158747Adnroid中保存图片的方法可能有如下两种... 阅读全文
摘要:
方法一、在Activity的onCreate中添加如下代码getWindow().setFormat(PixelFormat.TRANSLUCENT); reference to : http://www.jb51.net/article/72719.htm 阅读全文