You can also "fake" your touchscreen in android framework (hardcode device->classes |= CLASS_TOUCHSCREEN in frameworks/base/libs/ui/ EventHub.cpp "open") This is a temporary hack which worked in my case. And when you have a a real touchscreen driver you can remove this patch.
Tom On 27 août, 14:34, wineleven <eleven....@gmail.com> wrote: > mv resource to res/layout(not res/layout-notouch), or just write a > dummy touchscreen driver. > > On Aug 26, 3:46 pm, "Shadow ." <socal.sha...@gmail.com> wrote: > > > I am porting Android to a new device, on which we do not have a touchscreen > > driver yet. > > > I see the following errors in framework when starting few apps - like Dialer > > app - and see a similar crash with Music. > > > Searching through threads - someone suggested its related to resource files > > not being present for non touchscreen mode, however copying over > > res/layout-finger to res/layout-notouch for these apps did not work for me. > > Since I still have not written a touchscreen driver for my device - how do I > > work around this problem to continue using all apps? > > > Here is logcat trace when starting Dialer application: > > > -- > > I/ActivityManager( 795): Starting activity: Intent { > > act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH > > ER] flg=0x10200000 cmp=com.android.contacts/.DialtactsActivity } > > W/InputManagerService( 795): Starting input on non-focused client > > com.android.internal.view.IInputMethodClient$Stub$Pro > > x...@43968630 (uid=10000 pid=1115) > > W/ResourceType( 1115): Failure getting entry for 0x7f030005 (t=2 e=5) in > > package 0: 0xffffffb5 > > W/dalvikvm( 1115): threadid=3: thread exiting with uncaught exception > > (group=0x4001aa08) > > E/AndroidRuntime( 1115): Uncaught handler: thread main exiting due to > > uncaught exception > > E/AndroidRuntime( 1115): java.lang.RuntimeException: Unable to start > > activity ComponentInfo{com.android.contacts/com.and > > roid.contacts.DialtactsActivity}: > > android.content.res.Resources$NotFoundException: Resource ID #0x7f030005 > > E/AndroidRuntime( 1115): at > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2393) > > E/AndroidRuntime( 1115): at > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2409) > > E/AndroidRuntime( 1115): at > > android.app.ActivityThread.access$2100(ActivityThread.java:116) > > E/AndroidRuntime( 1115): at > > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1786) > > E/AndroidRuntime( 1115): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > E/AndroidRuntime( 1115): at android.os.Looper.loop(Looper.java:123) > > E/AndroidRuntime( 1115): at > > android.app.ActivityThread.main(ActivityThread.java:4195) > > E/AndroidRuntime( 1115): at > > java.lang.reflect.Method.invokeNative(Native Method) > > E/AndroidRuntime( 1115): at > > java.lang.reflect.Method.invoke(Method.java:521) > > E/AndroidRuntime( 1115): at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) > > E/AndroidRuntime( 1115): at > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > > E/AndroidRuntime( 1115): at dalvik.system.NativeStart.main(Native > > Method) > > E/AndroidRuntime( 1115): Caused by: > > android.content.res.Resources$NotFoundException: Resource ID #0x7f030005 > > E/AndroidRuntime( 1115): at > > android.content.res.Resources.getValue(Resources.java:896) > > E/AndroidRuntime( 1115): at > > android.content.res.Resources.loadXmlResourceParser(Resources.java:1869) > > E/AndroidRuntime( 1115): at > > android.content.res.Resources.getLayout(Resources.java:735) > > E/AndroidRuntime( 1115): at > > android.view.LayoutInflater.inflate(LayoutInflater.java:318) > > E/AndroidRuntime( 1115): at > > android.view.LayoutInflater.inflate(LayoutInflater.java:276) > > E/AndroidRuntime( 1115): at > > com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:313) > > E/AndroidRuntime( 1115): at > > android.app.Activity.setContentView(Activity.java:1620) > > E/AndroidRuntime( 1115): at > > com.android.contacts.DialtactsActivity.onCreate(DialtactsActivity.java:73) > > E/AndroidRuntime( 1115): at > > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) > > E/AndroidRuntime( 1115): at > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2356) > > E/AndroidRuntime( 1115): ... 11 more > > E/ActivityThread( 795): Failed to find provider info for > > android.server.checkin > > > -- > > > Any tools to narrow down to specific resource its looking for? > > > Thanks, > > -Shadow --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---