Cannot add widget

Shay

Well-Known Member
Licensed User
Longtime User
running in release mode
when click on widget, add, on my widget icon
the app crashes

FATAL EXCEPTION: main
java.lang.NullPointerException
at com.sec.android.app.twlauncher.Workspace.updateDragInfo(Workspace.java:2525)
at com.sec.android.app.twlauncher.AddWidgetDialog$2.onLongClick(AddWidgetDialog.java:657)
at android.view.View.performLongClick(View.java:2556)
at android.view.View$CheckForLongPress.run(View.java:9128)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
Force finishing activity com.sec.android.app.twlauncher/.Launcher



My code very simple, meaning nothing different from the example
only panel with image

tried everything nothing works, while the widget example is working fine
 

Shay

Well-Known Member
Licensed User
Longtime User
yes all the time
I changed the launcher to "go launcher"
and it is working fine
but I don't know what to do if it will happen to clients - I cannot tell them to change the launcher
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
yes,
since as I wrote, this time I am using release mode and not debug mode
 
Upvote 0
Top