buder

2017-12-11

1.ali代码检查插件
2.homekeyi 监听,wufa 拦截
3.toolbar√,actionbar×
4.android中SharedPreferences配置文件的创建与删除,sp创建删除使用
http://blog.csdn.net/fengleige131/article/details/24299819
5.adb shell am start service

1.linkcanderi内存泄漏
2.windowManager
3.屏幕常亮
http://www.bkjia.com/Androidjc/910203.html

 

starUML
1.屏幕常亮两种方法,完全一致博客:http://www.bkjia.com/Androidjc/910203.html
方法一:
开启:getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
关闭:getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
方法二:通过PowerManager.WakeLock实现
开启:
//获得系统POWER_SERVICE对象
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
//通过newWakeLock()方法创建WakeLock实例
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "这里随便你写,一个TAG而已");
//最好是放到onReusme方法调用
wl.acquire();
关闭:
//最好是放到onPause方法调用
wl.release();

2.crash
Make sure your adapter calls notifyDataSetChanged()

http://blog.csdn.net/zhanglianyu00/article/details/51191295
http://blog.csdn.net/zhanglianyu00/article/details/51192356
http://blog.csdn.net/u012608587/article/details/52208779

https://www.pocketdigi.com/20100827/75.html
http://blog.csdn.net/tomcmd/article/details/44873601

3. adb logcat -s TAG

4. adb root
adb remount


5.adb shell
am start -n com.android.documentsui/com.android.documentsui.DocumentsActivity
am start -n cn.nubia.flycow/cn.nubia.flycow.apps.AppInstallActivity

 

posted on 2017-12-11 21:18  buder  阅读(144)  评论(0编辑  收藏  举报

导航