Thank you very much NJDude!
Log unfiltered and this is actually seeing that the problem lies in the fifth line:
<!> anywheresoftware.b4a.BA 474 <!> ~ e: java.lang.RuntimeException: Object Should be initialized first (Map).
this (Map) is the declaration of a library in the Main module.
Question :
In a widget, disconnecting and reconnecting power the smartphones, the variables measured in the Main module are always available in the other modules as a normal app?
I do not think so because I get always the error that the variable is not valued.
So what is the strategy to develop a widget that makes use of enhanced interaction with fields, activity, etc..?
Thanks for the help
Enrico
Log :
Start proc anywheresoftware.b4a.samples.homewidgetsp1 for service anywheresoftware.b4a.samples.homewidgetsp1/.widgetservice: pid=4192 uid=10072 gids={}
<!>anywheresoftware.b4a.BA 474<!> ~i:** Service (widgetservice) Create **
write blocked for 282 msecs, 13 delayed writes, thread 0xce08
<!>anywheresoftware.b4a.BA 474<!> ~i:** Service (widgetservice) Start **
<!>anywheresoftware.b4a.BA 474<!> ~e:widgetservice_setlabel (java line: 147)
<!>anywheresoftware.b4a.BA 474<!> ~e:java.lang.RuntimeException: Object should first be initialized (Map).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.collections.Map.ContainsKey(Map.java:118)
at de.amberhome.locale.AHTranslator.GetText(AHTranslator.java:112)
at anywheresoftware.b4a.samples.homewidgetsp1.widgetservice._setlabel(widgetservice.java:147)
at anywheresoftware.b4a.samples.homewidgetsp1.widgetservice._imageview1_click(widgetservice.java:93)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at anywheresoftware.b4a.objects.RemoteViewsWrapper.raiseEventWithDebuggingSupport(RemoteViewsWrapper.java:137)
at anywheresoftware.b4a.objects.RemoteViewsWrapper.HandleWidgetEvents(RemoteViewsWrapper.java:114)
at anywheresoftware.b4a.samples.homewidgetsp1.widgetservice._service_start(widgetservice.java:137)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at anywheresoftware.b4a.samples.homewidgetsp1.widgetservice.handleStart(widgetservice.java:65)
at