当我的应用程序从Google Play安装时,会导致Android 2.1-update1上的应用程序管理器强行关闭(Android设置,应用程序,管理应用程序)。但是,通过Eclipse / ADB安装时,问题不会发生。
这里有例外:
Uncaught handler: thread main exiting due to uncaught exception
java.lang.ArrayIndexOutOfBoundsException
at com.android.settings.ManageApplications$AppInfoAdapter.bulkUpdateLabels(ManageApplications.java:1197)
at com.android.settings.ManageApplications$1.handleMessage(ManageApplications.java:404)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4595)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
它似乎与ResourceType和PackageManager中的许多警告配对:
W/ResourceType( 696): No package identifier when getting name for resource number 0x00000000
W/PackageManager( 696): Failure retrieving text 0x0 in package com.android.providers.drm
W/PackageManager( 696): android.content.res.Resources$NotFoundException: String resource ID #0x0
W/PackageManager( 696): at android.content.res.Resources.getText(Resources.java:200)
W/PackageManager( 696): at android.app.ApplicationContext$ApplicationPackageManager.getText(ApplicationContext.java:2306)
W/PackageManager( 696): at com.android.settings.ManageApplications$ResourceLoaderThread.run(ManageApplications.java:771)