The problem was this: I had several icons as drawables in res/, eclipse was putting them by default in res/drawable.ldpi and the SDK was looking into drawable.hdpi/ and drawable/, so I added the drawables in each rep, its now ok.
On Jan 9, 4:28 pm, guillaume benats <[email protected]> wrote: > It is ok, I fixed it :-) > > > > On Sat, Jan 8, 2011 at 8:21 PM, Tux <[email protected]> wrote: > > Hi all, > > > I have build the sources, and added my application in /packages/ > > apps/ , my app is PrimAndroid/ > > I have added it in core.mk and full.mk files of my vendor build. The > > app is showing in the application menu BUT when I launch it, the first > > screen is ok and then I try to press "menu" button of the device and > > the app is crashing, BUT in the usual sdk (so not the one I build), it > > is working perfectly fine. Why? Here is the logcat > > I do not understand the exception generated... > > > I/ActivityManager( 59): Starting activity: Intent > > { act=android.intent.action.MAIN > > cat=[android.intent.category.LAUNCHER] flg=0x10200000 > > cmp=com.android.PrimAndroid/.PrimAndroid } > > I/ActivityManager( 59): Start proc com.android.PrimAndroid for > > activity com.android.PrimAndroid/.PrimAndroid: pid=279 uid=10029 > > gids={} > > I/ActivityManager( 59): Displayed activity > > com.android.PrimAndroid/.PrimAndroid: 1094 ms (total 1094 ms) > > W/KeyCharacterMap( 279): No keyboard for id 0 > > W/KeyCharacterMap( 279): Using default keymap: /system/usr/keychars/ > > qwerty.kcm.bin > > W/ResourceType( 279): Failure getting entry for 0x7f020000 (t=1 e=0) > > in package 0: 0xffffffb5 > > D/AndroidRuntime( 279): Shutting down VM > > W/dalvikvm( 279): threadid=1: thread exiting with uncaught exception > > (group=0x4001d800) > > E/AndroidRuntime( 279): FATAL EXCEPTION: main > > E/AndroidRuntime( 279): android.content.res.Resources > > $NotFoundException: Resource ID #0x7f020000 > > E/AndroidRuntime( 279): at > > android.content.res.Resources.getValue(Resources.java:892) > > E/AndroidRuntime( 279): at > > android.content.res.Resources.getDrawable(Resources.java:580) > > E/AndroidRuntime( 279): at > > com.android.internal.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java: > > 440) > > E/AndroidRuntime( 279): at > > > com.android.internal.view.menu.IconMenuItemView.initialize(IconMenuItemView.java: > > 109) > > E/AndroidRuntime( 279): at > > > com.android.internal.view.menu.MenuItemImpl.createItemView(MenuItemImpl.java: > > 594) > > E/AndroidRuntime( 279): at > > com.android.internal.view.menu.MenuItemImpl.getItemView(MenuItemImpl.java: > > 577) > > E/AndroidRuntime( 279): at > > > com.android.internal.view.menu.IconMenuView.updateChildren(IconMenuView.java: > > 351) > > E/AndroidRuntime( 279): at > > com.android.internal.view.menu.IconMenuView.initialize(IconMenuView.java: > > 333) > > E/AndroidRuntime( 279): at > > com.android.internal.view.menu.MenuBuilder > > $MenuType.getMenuView(MenuBuilder.java:199) > > E/AndroidRuntime( 279): at > > com.android.internal.view.menu.MenuBuilder.getMenuView(MenuBuilder.java: > > 323) > > E/AndroidRuntime( 279): at > > > com.android.internal.policy.impl.PhoneWindow.initializePanelContent(PhoneWindow.java: > > 840) > > E/AndroidRuntime( 279): at > > com.android.internal.policy.impl.PhoneWindow.openPanel(PhoneWindow.java: > > 417) > > E/AndroidRuntime( 279): at > > com.android.internal.policy.impl.PhoneWindow.onKeyUpPanel(PhoneWindow.java: > > 603) > > E/AndroidRuntime( 279): at > > com.android.internal.policy.impl.PhoneWindow.onKeyUp(PhoneWindow.java: > > 1319) > > E/AndroidRuntime( 279): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.dispatchKeyEvent(PhoneWindow.java:1648) > > E/AndroidRuntime( 279): at > > android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java: > > 2471) > > E/AndroidRuntime( 279): at > > android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2441) > > E/AndroidRuntime( 279): at > > android.view.ViewRoot.handleMessage(ViewRoot.java:1735) > > E/AndroidRuntime( 279): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > E/AndroidRuntime( 279): at android.os.Looper.loop(Looper.java:123) > > E/AndroidRuntime( 279): at > > android.app.ActivityThread.main(ActivityThread.java:4627) > > E/AndroidRuntime( 279): at > > java.lang.reflect.Method.invokeNative(Native Method) > > E/AndroidRuntime( 279): at > > java.lang.reflect.Method.invoke(Method.java:521) > > E/AndroidRuntime( 279): at com.android.internal.os.ZygoteInit > > $MethodAndArgsCaller.run(ZygoteInit.java:868) > > E/AndroidRuntime( 279): at > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) > > E/AndroidRuntime( 279): at dalvik.system.NativeStart.main(Native > > Method) > > W/ActivityManager( 59): Force finishing activity > > com.android.PrimAndroid/.PrimAndroid > > W/ActivityManager( 59): Activity pause timeout for > > HistoryRecord{43fba908 com.android.PrimAndroid/.PrimAndroid} > > W/ActivityManager( 59): Activity destroy timeout for > > HistoryRecord{43fba908 com.android.PrimAndroid/.PrimAndroid} > > > -- > > unsubscribe: > > [email protected]<android-porting%[email protected]> > > website:http://groups.google.com/group/android-porting > > -- > Benats Guillaume . -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
