android.app.RemoteServiceException解決方法

方法一: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

相關文章
相關標籤/搜索