Hi Kostya,
Sorry for the late reply, it has been a hectic holiday period.
I couldn't get it to cause any problems in the emulator or any warnings on
my Android 2.2 device (Motorola Defy)
I got the user to send me a log file using a logfile capture app. There
was one exception of interest: -
"
12-21 12:24:46.919 E/AndroidRuntime(21552): FATAL EXCEPTION: main
12-21 12:24:46.919 E/AndroidRuntime(21552): java.lang.RuntimeException:
Failure delivering result ResultInfo{who=null, request=5, result=-1,
data=Intent { (has extras) }} to activity
{com.android.launcher/com.android.launcher2.Launcher}:
java.lang.NullPointerException
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.ActivityThread.
deliverResults(ActivityThread.java:2976)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.ActivityThread.
handleSendResult(ActivityThread.java:3019)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.ActivityThread.
access$1100(ActivityThread.java:122)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.ActivityThread$H.
handleMessage(ActivityThread.java:1176)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.os.Handler.
dispatchMessage(Handler.java:99)
12-21 12:24:46.919 E/AndroidRuntime(21552): at
android.os.Looper.loop(Looper.java:137)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.ActivityThread.
main(ActivityThread.java:4340)
12-21 12:24:46.919 E/AndroidRuntime(21552): at
java.lang.reflect.Method.invokeNative(Native
Method)
12-21 12:24:46.919 E/AndroidRuntime(21552): at java.lang.reflect.Method.
invoke(Method.java:511)
12-21 12:24:46.919 E/AndroidRuntime(21552): at com.android.internal.os.
ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
12-21 12:24:46.919 E/AndroidRuntime(21552): at com.android.internal.os.
ZygoteInit.main(ZygoteInit.java:551)
12-21 12:24:46.919 E/AndroidRuntime(21552): at
dalvik.system.NativeStart.main(Native
Method)
12-21 12:24:46.919 E/AndroidRuntime(21552): Caused by:
java.lang.NullPointerException
12-21 12:24:46.919 E/AndroidRuntime(21552): at com.android.launcher2.
Launcher.getSpanForWidget(Launcher.java:941)
12-21 12:24:46.919 E/AndroidRuntime(21552): at com.android.launcher2.
Launcher.completeAddAppWidget(Launcher.java:964)
12-21 12:24:46.919 E/AndroidRuntime(21552): at com.android.launcher2.
Launcher.completeAdd(Launcher.java:492)
12-21 12:24:46.919 E/AndroidRuntime(21552): at com.android.launcher2.
Launcher.onActivityResult(Launcher.java:528)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.Activity.
dispatchActivityResult(Activity.java:4649)
12-21 12:24:46.919 E/AndroidRuntime(21552): at android.app.ActivityThread.
deliverResults(ActivityThread.java:2972)
12-21 12:24:46.919 E/AndroidRuntime(21552): ... 11 more
12-21 12:24:46.919 W/ActivityManager( 176): Force finishing activity
com.android.launcher/com.android.launcher2.Launcher
"
Here is the relevant file
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.1_r1/com/android/launcher2/Launcher.java?av=f
It seems like it can't get the appWidgetInfo object on line 959. I have
checked my AppWidgetProviderInfo XML and it seems to comply to the
guidelines/rules. I'm not sure what I've done wrong here
Any suggestions would be welcome.
All the best,
Ash
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en