hi all
i noted that widgets are not loaded after my phone (Honor7 - android 5.02) was upgraded to rom version b188
with previous rom, all worked fine.
now, if i load my app, this error appears:
please note that "binuntius200_widget_sched.bal" exists : it is in "files" directory as it has always been and code was not changed.
same situation happens with another widget loaded later in app
it seems that is not possible to have access in desktop phone window
does this new scenario need to add some new permission ?
regards
peppe
i noted that widgets are not loaded after my phone (Honor7 - android 5.02) was upgraded to rom version b188
with previous rom, all worked fine.
now, if i load my app, this error appears:
B4X:
** Service (widgetsched) Create **
Error occurred on line: 16 (WidgetSched)
java.io.FileNotFoundException: binuntius200_widget_sched.bal
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:313)
at android.content.res.AssetManager.open(AssetManager.java:287)
at anywheresoftware.b4a.objects.RemoteViewsWrapper.createRemoteViews(RemoteViewsWrapper.java:39)
at BiNuntius.II.widgetsched._service_create(widgetsched.java:167)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:697)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:336)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at BiNuntius.II.widgetsched.onCreate(widgetsched.java:53)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2858)
at android.app.ActivityThread.access$2200(ActivityThread.java:152)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1434)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5539)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
** Service (widgetsched) Start **
please note that "binuntius200_widget_sched.bal" exists : it is in "files" directory as it has always been and code was not changed.
same situation happens with another widget loaded later in app
it seems that is not possible to have access in desktop phone window
does this new scenario need to add some new permission ?
regards
peppe
Last edited: