摘要: 1、实现UncaughtExceptionHandler,在方法uncaughtException中处理没有捕获的异常。2、继承Application ,在其中调用Thread方法setDefaultUncaughtExceptionHandler,来捕获异常代码:public class MyApplication extends Application { public void onCreate() { super.onCreate(); GlobalException handler = GlobalException.getInstance(... 阅读全文
posted @ 2012-10-15 10:21 lipeil 阅读(1559) 评论(0) 推荐(0)
摘要: public static final int FLAG_SHOW_LIGHTS = 0x00000001;//控制闪光 public static final int FLAG_ONGOING_EVENT = 0x00000002;//将flag设置为这个属性那么通知就会像QQ一样一直在状态栏显示 public static final int FLAG_INSISTENT = 0x00000004; //重复发出声音,直到用户响应此通知 public static final int FLAG_ONLY_ALERT_ONCE ... 阅读全文
posted @ 2012-10-15 09:19 lipeil 阅读(4295) 评论(0) 推荐(0)