方法一:
如果程序里面用了umeng 的SDK,老版本的umeng使用了AnimationView,这个AnimationView在2.2上OK,但是在2.3上因为level 10的包名被改了,所以会crash。更新到最新的umeng SDK 2.1就好了。
换成UMENG 3.2.1版本 SDK,不会出现以上报错情况了。使用 UMENG 2.3版本 SDK,还是会报错。
方法二:
在android4.0一下的版本,使用 noticManager.notify()一个notification 必须要设定一个 pendingintent 不然系统会异常抛出。
所以在notification初始化前填下如下代码即可
PendingIntent pendingintent = PendingIntent.getActivity(this, 0, new Intent(), PendingIntent.FLAG_CANCEL_CURRENT);
notification.contentIntent=pendingintent;