Open GoogleCodeExporter opened 9 years ago
Please provide a log...
Original comment by klinster...@gmail.com
on 22 Sep 2010 at 11:29
If you'd like to check what is running the source to the launcher can be found
here: http://github.com/anderweb
Hiwever, here's a link to just the auncher.java:
http://github.com/AnderWeb/android_packages_apps_Launcher/blob/eclair/src/com/an
droid/launcher/Launcher.java
Original comment by JAguirre1231
on 22 Sep 2010 at 11:48
Maybe there's something to do with here? Since the line number doesn't match
Bundle metadata = getPackageManager().getReceiverInfo(appWidget.provider,
PackageManager.GET_META_DATA).metaData;
Here is the logcat:
09-23 11:15:51.149: WARN/InputManagerService(92): Window already focused,
ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@44c1e7b0
09-23 11:15:51.249: INFO/ActivityManager(92): Displayed activity
com.android.settings/.AppWidgetPickActivity: 377 ms (total 377 ms)
09-23 11:15:51.959: DEBUG/dalvikvm(503): GC_EXTERNAL_ALLOC freed 1215 objects /
78856 bytes in 44ms
09-23 11:15:52.019: DEBUG/dalvikvm(503): GC_EXTERNAL_ALLOC freed 269 objects /
15120 bytes in 32ms
09-23 11:15:53.819: DEBUG/AndroidRuntime(1557): Shutting down VM
09-23 11:15:53.819: WARN/dalvikvm(1557): threadid=1: thread exiting with
uncaught exception (group=0x4001d7f0)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): FATAL EXCEPTION: main
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): java.lang.RuntimeException:
Failure delivering result ResultInfo{who=null, request=9, result=-1,
data=Intent { (has extras) }} to activity
{org.adw.launcher/org.adw.launcher.Launcher}: java.lang.NullPointerException
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3515)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.ActivityThread.handleSendResult(ActivityThread.java:3557)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.ActivityThread.access$2800(ActivityThread.java:125)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2063)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.os.Handler.dispatchMessage(Handler.java:99)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.os.Looper.loop(Looper.java:123)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.ActivityThread.main(ActivityThread.java:4627)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
java.lang.reflect.Method.invokeNative(Native Method)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
java.lang.reflect.Method.invoke(Method.java:521)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
dalvik.system.NativeStart.main(Native Method)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): Caused by:
java.lang.NullPointerException
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
org.adw.launcher.Launcher.addAppWidget(Launcher.java:1565)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
org.adw.launcher.Launcher.onActivityResult(Launcher.java:525)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.Activity.dispatchActivityResult(Activity.java:3890)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3511)
09-23 11:15:53.839: ERROR/AndroidRuntime(1557): ... 11 more
09-23 11:15:53.859: WARN/ActivityManager(92): Force finishing activity
org.adw.launcher/.Launcher
09-23 11:15:54.359: WARN/ActivityManager(92): Activity pause timeout for
HistoryRecord{44dd8a28 org.adw.launcher/.Launcher}
09-23 11:15:56.629: INFO/Process(1557): Sending signal. PID: 1557 SIG: 9
09-23 11:15:56.639: INFO/ActivityManager(92): Process android.process.acore
(pid 1557) has died.
09-23 11:15:56.639: INFO/WindowManager(92): WIN DEATH: Window{44d88638
org.adw.launcher/org.adw.launcher.Launcher paused=false}
Original comment by tak...@gmail.com
on 23 Sep 2010 at 3:58
Find the solution. Please kindly check if it is necessary for the <meta-data>
tag to exist in a <receiver> tag:
Orginally I have a receiver with a customized intent-filter:
<receiver android:name=".HKOSmallWidget">
<intent-filter>
<action android:name="com.tako.hko.WIDGET_CONTROL" />
<data android:scheme="update_small_widget" />
</intent-filter>
</receiver>
However, in ADW's Launcher.java line 1568, the meta-data must exist
Bundle metadata = getPackageManager().getReceiverInfo(appWidget.provider,
PackageManager.GET_META_DATA).metaData;
To fix the problem, a dummy <meta-data> tag must be put into the <receiver> tag.
Original comment by tak...@gmail.com
on 24 Sep 2010 at 3:25
This should be fixed on 1.2.0, can you confirm??
Thanks
Original comment by ander...@gmail.com
on 18 Oct 2010 at 7:11
Original issue reported on code.google.com by
tak...@gmail.com
on 22 Sep 2010 at 2:25