Widget add freeze

Shay

Well-Known Member
Licensed User
Longtime User
Hi

strange thing, since it was working for me..
I unistalled and installed my app

I am trying to add my widget, but when I click the widget icon to add it, my device freeze and i am getting error message of force close

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)
Dumpstate > /data/log/dumpstate_app_error

Force finishing activity com.sec.android.app.twlauncher/.Launcher
 

Shay

Well-Known Member
Licensed User
Longtime User
very simple:

'Service module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim rv As RemoteViews

End Sub
Sub Service_Create

rv = ConfigureHomeWidget("LayoutWidget", "rv", 0, "It",True)

End Sub

Sub Service_Start (StartingIntent As Intent)

If rv.HandleWidgetEvents(StartingIntent) Then Return

End Sub

Sub rv_RequestUpdate
rv.UpdateWidget
End Sub

Sub rv_Disabled
StopService("")
End Sub
Sub ImageView1_Click
StartActivity("MainMenu")
End Sub

Sub Service_Destroy

End Sub
 
Upvote 0
Top