方法一:android
若是程序里面用了umeng 的SDK,老版本的umeng使用了AnimationView,这个AnimationView在2.2上OK,可是在2.3上由于level 10的包名被改了,因此会crash。更新到最新的umeng SDK 2.1就行了。this
换成UMENG 3.2.1版本 SDK,不会出现以上报错状况了。使用 UMENG 2.3版本 SDK,仍是会报错。spa
方法二:orm
在android4.0一下的版本,使用 noticManager.notify()一个notification 必需要设定一个 pendingintent 否则系统会异常抛出。get
因此在notification初始化前填下以下代码便可 it
PendingIntent pendingintent = PendingIntent.getActivity(this, 0, new Intent(), PendingIntent.FLAG_CANCEL_CURRENT);
notification.contentIntent=pendingintent;io