It still doesn't work. I tried your example. It compiles and installs on the phone this time, but the program doesn't work and gives the error: “B4A Example crashes systematically.”
erreur :
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object anywheresoftware.b4a.BA.raiseEvent(java.lang.Object, java.lang.String, java.lang.Object[])' on a null object reference
at anywheresoftware.b4a.objects.WallpaperInternalService$LWManager.raiseEvent(WallpaperInternalService.java:99)
at anywheresoftware.b4a.objects.WallpaperInternalService$B4AEngine.onSurfaceChanged(WallpaperInternalService.java:292)
at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:1747)
at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:1932)
at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.doAttachEngine(WallpaperService.java:3127)
at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:3174)
at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8918)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)