摘要:
private class MsgObsever extends ContentObserver { public MsgObsever() { super(msgHandler); } @Override pub... 阅读全文
摘要:
Android applications are, at least on the T-Mobile G1, limited to 16 MB of heap. It’s both a lot of memory for a phone and yet very little for what so... 阅读全文
摘要:
Woo-hoo!Now you knowwhat is happening with your app’s memory usage when you see one of those OOM exception. But, you don’t know where to find the sour... 阅读全文
摘要:
1.为了防止插入重复数据 找了INSERT or replace INTO这个方法 结果要做的工作太多 还不如直接删除后再插入2.为了防止sql 注入 学习了SQLiteStatement的用法3.研究在Service 中的变量 静态变量的生命周期 阅读全文
摘要:
android防被杀现在的清理软件如360都有一键清理的功能,他会后台运行的程序一个个kill掉。程序死掉后也不会走正常的生命周期,比如调用ondestory方法。怎么才能让程序一直运行在后台,不被360杀掉呢?在测试了几种方法后,终于找到一种方法。android有个同步工具Sync Adapter... 阅读全文
摘要:
launcher启动流程分析launcher类调用bindScreensworkspace类调用insertNewWorkspaceScreenBeforeEmptyScreen方法插入首页的分屏 阅读全文
摘要:
默认上传的图片会加入一些头文件信息,导致图片打不开解决方案是修改AbstractMultipartForm类的doWriteTo方法 for (final FormBodyPart part : getBodyParts()) { // writeBytes(TWO_DASHES, out); // writeBytes(boundary, out); // writeBytes(CR_LF, out); // formatMultipartHeader(part, out); // writeBytes(CR_LF, out); if (writeContent) ... 阅读全文