我正在重新编码其他编码器制作的代码。它使用 SAX 解析器等。当我加载主屏幕时,屏幕首先是黑色的(就像冻结一样),然后加载了布局元素。
这不会经常发生,而是随机发生。我注意到这个错误被捕获了getPackageInfoItem() NameNotFoundException
。这是堆栈跟踪:
07-10 13:11:13.835: ERROR/PackageInfoItemFactory(16118): getPackageInfoItem() NameNotFoundException
android.content.pm.PackageManager$NameNotFoundException: com.app.android
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:214)
at com.sec.android.app.controlpanel.PackageInfoItemFactory.updatePackageInfoItem(PackageInfoItemFactory.java:88)
at com.sec.android.app.controlpanel.PackageInfoItemFactory.updatePackageInfoItem(PackageInfoItemFactory.java:67)
at com.sec.android.app.controlpanel.PackageIntentReceiver.onReceive(PackageIntentReceiver.java:27)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2131)
at android.app.ActivityThread.access$1500(ActivityThread.java:127)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method)
任何想法如何解决这个问题?