Sagenut Expert Licensed User Longtime User Oct 13, 2024 #1 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: Spoiler: 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)
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: Spoiler: 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)
Sagenut Expert Licensed User Longtime User Oct 13, 2024 #2 The error was mine. I put the library in the Additional Libraries folder but instead this one it's an Internal Library. After moving it to the correct folder it worked perfectly. Upvote 0
The error was mine. I put the library in the Additional Libraries folder but instead this one it's an Internal Library. After moving it to the correct folder it worked perfectly.
Sagenut Expert Licensed User Longtime User Oct 13, 2024 #3 I would suggest @Erel to specify in the tutorial that the LiveWallpaper library it's an internal one. Probably it was just a miss from me, but I got the info that it's an Internal Library from another thread. Upvote 0
I would suggest @Erel to specify in the tutorial that the LiveWallpaper library it's an internal one. Probably it was just a miss from me, but I got the info that it's an Internal Library from another thread.