J jkhazraji Active Member Licensed User Longtime User Nov 17, 2025 #1 Concerning this valuable tutorial: Android Live Wallpaper tutorial, how to 'start' the service WallpaperService to change or set the wall paper. I was not able to run the example althoguh I placed livewallpaper.jar and livewallpaper.xml in internal library folder and added the snippets required in manifest editor, also made the wallpaper.xml read-only! I can only see this code in Button1_Click: B4X: Dim in As Intent in.Initialize("android.intent.action.SET_WALLPAPER", "") StartActivity(in) What makes the app see the service and launch it ?
Concerning this valuable tutorial: Android Live Wallpaper tutorial, how to 'start' the service WallpaperService to change or set the wall paper. I was not able to run the example althoguh I placed livewallpaper.jar and livewallpaper.xml in internal library folder and added the snippets required in manifest editor, also made the wallpaper.xml read-only! I can only see this code in Button1_Click: B4X: Dim in As Intent in.Initialize("android.intent.action.SET_WALLPAPER", "") StartActivity(in) What makes the app see the service and launch it ?
DonManfred Expert Licensed User Longtime User Nov 17, 2025 #2 jkhazraji said: What makes the app see the service and launch it ? Click to expand... The entry in the Manifest. Upvote 0
jkhazraji said: What makes the app see the service and launch it ? Click to expand... The entry in the Manifest.
J jkhazraji Active Member Licensed User Longtime User Nov 17, 2025 #3 DonManfred said: The entry in the Manifest. Click to expand... Indeed I know that, but nothing happens. I am using an emulator. Does that prevent the service from running? Last edited: Nov 17, 2025 Upvote 0
DonManfred said: The entry in the Manifest. Click to expand... Indeed I know that, but nothing happens. I am using an emulator. Does that prevent the service from running?
J jkhazraji Active Member Licensed User Longtime User Nov 17, 2025 #4 I am now starting to comprehend that as the service is run, we should press the screen for some time (in a physical device), in this way the wallpaper invoked by the service should be within the options, or am I wrong? Upvote 0
I am now starting to comprehend that as the service is run, we should press the screen for some time (in a physical device), in this way the wallpaper invoked by the service should be within the options, or am I wrong?
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2025 #5 jkhazraji said: also made the wallpaper.xml read-only Click to expand... This is a mistake. This file is created during compilation by the call to CreateResource in the manifest editor. The example should work as-is. I've fixed the conflict with the new Initialized keyword. Upvote 0
jkhazraji said: also made the wallpaper.xml read-only Click to expand... This is a mistake. This file is created during compilation by the call to CreateResource in the manifest editor. The example should work as-is. I've fixed the conflict with the new Initialized keyword.