Trying the attached example from this thread
https://www.b4x.com/android/forum/threads/android-live-wallpaper-tutorial.12605/page-11#post-1003105
I get this error just when choosing the wallpaper from the list.
After this I think that it should show a preview of the live wallpaper but the error come up and going on it just exit without setting the wallpaper.
Error log:
https://www.b4x.com/android/forum/threads/android-live-wallpaper-tutorial.12605/page-11#post-1003105
I get this error just when choosing the wallpaper from the list.
After this I think that it should show a preview of the live wallpaper but the error come up and going on it just exit without setting the wallpaper.
Error log:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
*** Service (wallpaperservice) Create ***
wallpaperservice_service_create (java line: 290)
java.lang.NoSuchFieldError: No instance field isService of type Z in class Lanywheresoftware/b4a/BA$SharedProcessBA; or its superclasses (declaration of 'anywheresoftware.b4a.BA$SharedProcessBA' appears in base.apk)
at anywheresoftware.b4a.objects.WallpaperInternalService$LWManager.Initialize(WallpaperInternalService.java:74)
at b4a.example.wallpaperservice._service_create(wallpaperservice.java:290)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at b4a.example.wallpaperservice.onCreate(wallpaperservice.java:56)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4297)
at android.app.ActivityThread.access$1700(ActivityThread.java:258)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2002)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
*** Service (wallpaperservice) Create ***
wallpaperservice_service_create (java line: 290)
java.lang.NoSuchFieldError: No instance field isService of type Z in class Lanywheresoftware/b4a/BA$SharedProcessBA; or its superclasses (declaration of 'anywheresoftware.b4a.BA$SharedProcessBA' appears in base.apk)
at anywheresoftware.b4a.objects.WallpaperInternalService$LWManager.Initialize(WallpaperInternalService.java:74)
at b4a.example.wallpaperservice._service_create(wallpaperservice.java:290)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at b4a.example.wallpaperservice.onCreate(wallpaperservice.java:56)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4297)
at android.app.ActivityThread.access$1700(ActivityThread.java:258)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2002)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)