星期一, 1月 04, 2010

Keystoke causes android.process.acore to crash

After replacing the touchscreen device with a LCD and keyboard, I find android.process.acore will crash while trying to type with the keyboard. This bug also occurs when executing Contacts and dialer applications. According to the messages shown by logcat, this bug is resulted from failing to load resource required by Android.

android.process.acore_crash

According to this description, Android system cannot find the required resources for notouch device. So, we can fix this bug by copying each folder ending with -finger to the one ending with -notouch.

D/AndroidRuntime(  760): Shutting down VM
W/dalvikvm(  760): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
E/AndroidRuntime(  760): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(  760): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.DialtactsActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030005
E/AndroidRuntime(  760):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
E/AndroidRuntime(  760):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
E/AndroidRuntime(  760):        at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime(  760):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
E/AndroidRuntime(  760):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  760):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  760):        at android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime(  760):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  760):        at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  760):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime(  760):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime(  760):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  760): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030005
E/AndroidRuntime(  760):        at android.content.res.Resources.getValue(Resources.java:846)
E/AndroidRuntime(  760):        at android.content.res.Resources.loadXmlResourceParser(Resources.java:1796)
E/AndroidRuntime(  760):        at android.content.res.Resources.getLayout(Resources.java:685)
E/AndroidRuntime(  760):        at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
E/AndroidRuntime(  760):        at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime(  760):        at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309)
E/AndroidRuntime(  760):        at android.app.Activity.setContentView(Activity.java:1626)
E/AndroidRuntime(  760):        at com.android.contacts.DialtactsActivity.onCreate(DialtactsActivity.java:73)
E/AndroidRuntime(  760):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime(  760):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
E/AndroidRuntime(  760):        ... 11 more
I/Process (  556): Sending signal. PID: 760 SIG: 3
I/dalvikvm(  760): threadid=7: reacting to signal 3

References:
http://d.android.com/guide/topics/resources/index.html

1 則留言:

Unknown 提到...

http://osdir.com/ml/android-porting/2009-05/msg00519.html

it's working for me. you could give it a shot.