[G1 Android Development] MattDrumz:
Hey guys, I'm having a little problem with ADWLauncher. I flashed ADW1.0.1 for CM5.0.8 on top of SuperE 1.0.3, and everything booted up fine, and seemed to work.

However, I have one little problem. I can't add widgets to my homescreen. Every time I long press and then select widgets, my settings.apk force closes. I've ran fix_permissions, so it definitely isn't that. Also, I had the same problem with an earlier release of ADW on SuperE.

Here's a logcat:

id.launcher
W/PackageManager(19631): android.content.res.Resources$NotFoundException: Resour
ce ID #0x7f020061
W/PackageManager(19631): at android.content.res.Resources.getValue(Resour
ces.java:891)
W/PackageManager(19631): at android.content.res.Resources.getDrawable(Res
ources.java:579)
W/PackageManager(19631): at android.app.ApplicationContext$ApplicationPac
kageManager.getDrawable(ApplicationContext.java:1930)
W/PackageManager(19631): at com.android.settings.AppWidgetPickActivity.pu
tAppWidgetItems(AppWidgetPickActivity.java:178)
W/PackageManager(19631): at com.android.settings.AppWidgetPickActivity.pu
tCustomAppWidgets(AppWidgetPickActivity.java:132)
W/PackageManager(19631): at com.android.settings.AppWidgetPickActivity.ge
tItems(AppWidgetPickActivity.java:208)
W/PackageManager(19631): at com.android.settings.ActivityPicker.onCreate(
ActivityPicker.java:98)
W/PackageManager(19631): at com.android.settings.AppWidgetPickActivity.on
Create(AppWidgetPickActivity.java:63)
W/PackageManager(19631): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1047)
W/PackageManager(19631): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2459)
W/PackageManager(19631): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2512)
W/PackageManager(19631): at android.app.ActivityThread.access$2200(Activi
tyThread.java:119)
W/PackageManager(19631): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1863)
W/PackageManager(19631): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
W/PackageManager(19631): at android.os.Looper.loop(Looper.java:123)
W/PackageManager(19631): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
W/PackageManager(19631): at java.lang.reflect.Method.invokeNative(Native
Method)
W/PackageManager(19631): at java.lang.reflect.Method.invoke(Method.java:5
21)
W/PackageManager(19631): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
W/PackageManager(19631): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
W/PackageManager(19631): at dalvik.system.NativeStart.main(Native Method)

W/AppWidgetPickActivity(19631): Can't load icon drawable 0x7f020061 for provider
: ComponentInfo{com.android.launcher/XXX.YYY}
D/AndroidRuntime(19631): Shutting down VM
W/dalvikvm(19631): threadid=3: thread exiting with uncaught exception (group=0x4
001e190)
E/AndroidRuntime(19631): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime(19631): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.android.settings/com.android.settings.AppWidgetPickActivity}: ja
va.lang.NullPointerException
E/AndroidRuntime(19631): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2496)
E/AndroidRuntime(19631): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2512)
E/AndroidRuntime(19631): at android.app.ActivityThread.access$2200(Activi
tyThread.java:119)
E/AndroidRuntime(19631): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1863)
E/AndroidRuntime(19631): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime(19631): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(19631): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
E/AndroidRuntime(19631): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(19631): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime(19631): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(19631): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
E/AndroidRuntime(19631): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(19631): Caused by: java.lang.NullPointerException
E/AndroidRuntime(19631): at com.android.settings.ActivityPicker$IconResiz
er.createIconThumbnail(ActivityPicker.java:364)
E/AndroidRuntime(19631): at com.android.settings.ActivityPicker$PickAdapt
er$Item.<init>(ActivityPicker.java:226)
E/AndroidRuntime(19631): at com.android.settings.AppWidgetPickActivity.pu
tAppWidgetItems(AppWidgetPickActivity.java:185)
E/AndroidRuntime(19631): at com.android.settings.AppWidgetPickActivity.pu
tCustomAppWidgets(AppWidgetPickActivity.java:132)
E/AndroidRuntime(19631): at com.android.settings.AppWidgetPickActivity.ge
tItems(AppWidgetPickActivity.java:208)
E/AndroidRuntime(19631): at com.android.settings.ActivityPicker.onCreate(
ActivityPicker.java:98)
E/AndroidRuntime(19631): at com.android.settings.AppWidgetPickActivity.on
Create(AppWidgetPickActivity.java:63)
E/AndroidRuntime(19631): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1047)
E/AndroidRuntime(19631): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2459)
E/AndroidRuntime(19631): ... 11 more
I/Process ( 151): Sending signal. PID: 19631 SIG: 3
I/dalvikvm(19631): threadid=7: reacting to signal 3
I/dalvikvm(19631): Wrote stack trace to '/data/anr/traces.txt'
I/DumpStateReceiver( 151): Added state dump to 1 crashes
I/Process (19631): Sending signal. PID: 19631 SIG: 9
I/ActivityManager( 151): Process com.android.settings (pid 19631) has died.
I/UsageStats( 151): Unexpected resume of com.android.launcher while already res
umed in com.android.settings
W/InputManagerService( 151): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@44133050
W/Process ( 151): Unable to open /proc/1601/status
D/NetworkLocationProvider( 151): onCellLocationChanged [41322,9553]
D/WindowManager( 151): I'm tired mEndcallBehavior=0x2
I/power ( 151): *** set_screen_state 0
D/Sensors ( 151): sensors=00000000, real=00000000
D/SurfaceFlinger( 151): About to give-up screen, flinger = 0x1189b8
D/AKMD ( 141): Compass CLOSE
D/dalvikvm( 151): GC freed 19384 objects / 1171696 bytes in 261ms
I/ActivityManager( 151): Start proc com.android.settings for broadcast com.andr
oid.settings/.widget.SettingsAppWidgetProvider: pid=19644 uid=1000 gids={3003, 3
002, 3001}
V/Telephony( 9443): getOrCreateThreadId uri: content://mms-sms/threadID?recipien
t=253-250-7854
V/Telephony( 9443): getOrCreateThreadId cursor cnt: 1
D/dalvikvm( 198): GC freed 7076 objects / 514832 bytes in 108ms
D/KeyguardViewMediator( 151): wakeWhenReadyLocked(82)
D/KeyguardViewMediator( 151): handleWakeWhenReady(82)
D/KeyguardViewMediator( 151): pokeWakelock(5000)
I/power ( 151): *** set_screen_state 1
D/AKMD ( 141): Compass OPEN
D/Sensors ( 151): sensors=00000001, real=00000001
D/SurfaceFlinger( 151): Screen about to return, flinger = 0x1189b8
D/NetworkLocationProvider( 151): onCellLocationChanged [41322,3393]
D/KeyguardViewMediator( 151): pokeWakelock(5000)
D/KeyguardViewMediator( 151): pokeWakelock(5000)
W/InputManagerService( 151): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@43de57a8
I/ActivityManager( 151): Starting activity: Intent { act=android.intent.action.
VIEW dat=content://mms-sms/conversations/1 flg=0x34000000 cmp=com.android.mms/.u
i.ComposeMessageActivity bnds=[0,101][320,165] }
D/dalvikvm( 9443): GC freed 11114 objects / 483280 bytes in 104ms
D/NetworkLocationProvider( 151): onCellLocationChanged [41322,3983]
D/dalvikvm( 450): GC freed 1647 objects / 68144 bytes in 706ms
I/NotificationsSvc( 1423): Checking for notifications...
D/WindowManager( 151): I'm tired mEndcallBehavior=0x2
I/power ( 151): *** set_screen_state 0
D/Sensors ( 151): sensors=00000000, real=00000000
D/SurfaceFlinger( 151): About to give-up screen, flinger = 0x1189b8
D/AKMD ( 141): Compass CLOSE
I/global ( 151): Default buffer size used in BufferedReader constructor. It wo
uld be better to be explicit if an 8k-char buffer is required.
I/power ( 151): *** set_screen_state 1
D/AKMD ( 141): Compass OPEN
D/Sensors ( 151): sensors=00000001, real=00000001
D/SurfaceFlinger( 151): Screen about to return, flinger = 0x1189b8
D/MountListener( 151): handleEvent ums_connected
D/NetworkLocationProvider( 151): onCellLocationChanged [41322,3343]
D/WindowManager( 151): I'm tired mEndcallBehavior=0x2
I/power ( 151): *** set_screen_state 0
D/Sensors ( 151): sensors=00000000, real=00000000
D/SurfaceFlinger( 151): About to give-up screen, flinger = 0x1189b8
D/AKMD ( 141): Compass CLOSE
D/KeyguardViewMediator( 151): wakeWhenReadyLocked(82)
D/KeyguardViewMediator( 151): handleWakeWhenReady(82)
D/KeyguardViewMediator( 151): pokeWakelock(5000)
I/power ( 151): *** set_screen_state 1
D/Sensors ( 151): sensors=00000001, real=00000001
D/AKMD ( 141): Compass OPEN
D/SurfaceFlinger( 151): Screen about to return, flinger = 0x1189b8
D/NetworkLocationProvider( 151): onCellLocationChanged [41322,3393]
D/KeyguardViewMediator( 151): pokeWakelock(5000)
D/KeyguardViewMediator( 151): pokeWakelock(5000)
D/KeyguardViewMediator( 151): pokeWakelock(5000)
D/KeyguardViewMediator( 151): pokeWakelock(5000)
W/InputManagerService( 151): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@43f6f450
I/ActivityManager( 151): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/
.Launcher }
I/ActivityManager( 151): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/
.Launcher }
W/InputManagerService( 151): Ignoring hideSoftInput of: com.android.internal.vi
ew.IInputMethodClient$Stub$Proxy@441843e8
W/IInputConnectionWrapper( 9443): showStatusIcon on inactive InputConnection
D/dalvikvm( 9443): GC freed 11534 objects / 531496 bytes in 121ms
I/ActivityManager( 151): Starting activity: Intent { act=android.appwidget.acti
on.APPWIDGET_PICK cmp=com.android.settings/.AppWidgetPickActivity (has extras) }

W/InputManagerService( 151): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@441ff508
D/dalvikvm(19644): GC freed 1932 objects / 119144 bytes in 94ms
W/ResourceType(19644): Failure getting entry for 0x7f020061 (t=1 e=97) in packag
e 0: 0xffffffb5
W/PackageManager(19644): Failure retrieving icon 0x7f020061 in package com.andro
id.launcher
W/PackageManager(19644): android.content.res.Resources$NotFoundException: Resour
ce ID #0x7f020061
W/PackageManager(19644): at android.content.res.Resources.getValue(Resour
ces.java:891)
W/PackageManager(19644): at android.content.res.Resources.getDrawable(Res
ources.java:579)
W/PackageManager(19644): at android.app.ApplicationContext$ApplicationPac
kageManager.getDrawable(ApplicationContext.java:1930)
W/PackageManager(19644): at com.android.settings.AppWidgetPickActivity.pu
tAppWidgetItems(AppWidgetPickActivity.java:178)
W/PackageManager(19644): at com.android.settings.AppWidgetPickActivity.pu
tCustomAppWidgets(AppWidgetPickActivity.java:132)
W/PackageManager(19644): at com.android.settings.AppWidgetPickActivity.ge
tItems(AppWidgetPickActivity.java:208)
W/PackageManager(19644): at com.android.settings.ActivityPicker.onCreate(
ActivityPicker.java:98)
W/PackageManager(19644): at com.android.settings.AppWidgetPickActivity.on
Create(AppWidgetPickActivity.java:63)
W/PackageManager(19644): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1047)
W/PackageManager(19644): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2459)
W/PackageManager(19644): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2512)
W/PackageManager(19644): at android.app.ActivityThread.access$2200(Activi
tyThread.java:119)
W/PackageManager(19644): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1863)
W/PackageManager(19644): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
W/PackageManager(19644): at android.os.Looper.loop(Looper.java:123)
W/PackageManager(19644): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
W/PackageManager(19644): at java.lang.reflect.Method.invokeNative(Native
Method)
W/PackageManager(19644): at java.lang.reflect.Method.invoke(Method.java:5
21)
W/PackageManager(19644): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
W/PackageManager(19644): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
W/PackageManager(19644): at dalvik.system.NativeStart.main(Native Method)

W/AppWidgetPickActivity(19644): Can't load icon drawable 0x7f020061 for provider
: ComponentInfo{com.android.launcher/XXX.YYY}
D/AndroidRuntime(19644): Shutting down VM
W/dalvikvm(19644): threadid=3: thread exiting with uncaught exception (group=0x4
001e190)
E/AndroidRuntime(19644): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime(19644): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.android.settings/com.android.settings.AppWidgetPickActivity}: ja
va.lang.NullPointerException
E/AndroidRuntime(19644): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2496)
E/AndroidRuntime(19644): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2512)
E/AndroidRuntime(19644): at android.app.ActivityThread.access$2200(Activi
tyThread.java:119)
E/AndroidRuntime(19644): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1863)
E/AndroidRuntime(19644): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime(19644): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(19644): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
E/AndroidRuntime(19644): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(19644): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime(19644): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(19644): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
E/AndroidRuntime(19644): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(19644): Caused by: java.lang.NullPointerException
E/AndroidRuntime(19644): at com.android.settings.ActivityPicker$IconResiz
er.createIconThumbnail(ActivityPicker.java:364)
E/AndroidRuntime(19644): at com.android.settings.ActivityPicker$PickAdapt
er$Item.<init>(ActivityPicker.java:226)
E/AndroidRuntime(19644): at com.android.settings.AppWidgetPickActivity.pu
tAppWidgetItems(AppWidgetPickActivity.java:185)
E/AndroidRuntime(19644): at com.android.settings.AppWidgetPickActivity.pu
tCustomAppWidgets(AppWidgetPickActivity.java:132)
E/AndroidRuntime(19644): at com.android.settings.AppWidgetPickActivity.ge
tItems(AppWidgetPickActivity.java:208)
E/AndroidRuntime(19644): at com.android.settings.ActivityPicker.onCreate(
ActivityPicker.java:98)
E/AndroidRuntime(19644): at com.android.settings.AppWidgetPickActivity.on
Create(AppWidgetPickActivity.java:63)
E/AndroidRuntime(19644): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1047)
E/AndroidRuntime(19644): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2459)
E/AndroidRuntime(19644): ... 11 more
I/Process ( 151): Sending signal. PID: 19644 SIG: 3
I/dalvikvm(19644): threadid=7: reacting to signal 3
I/dalvikvm(19644): Wrote stack trace to '/data/anr/traces.txt'
I/DumpStateReceiver( 151): Added state dump to 1 crashes
V/Telephony( 9443): getOrCreateThreadId uri: content://mms-sms/threadID?recipien
t=253-250-7854
V/Telephony( 9443): getOrCreateThreadId cursor cnt: 1
W/ActivityManager( 151): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 151): Activity idle timeout for HistoryRecord{441a1838 com.a
ndroid.settings/.AppWidgetPickActivity}

Thanks!