How do I upload picture and change app wallpaper

How do I upload a picture and change the app wallpaper to the picture, for app with many screen and for long time

  1. Use an ImagePicker in Media to pick the image.

  2. Use the [FREE] Wallpaper Changer extension to change the wallpaper.

(Set DefaultFileScope to Legacy, and ask the Write permission)

2 Likes

The [FREE] Wallpaper Changer is for the handphone wallpaper not for the app wallpaper

Then use the BackgroundImage property in the Screen to change the background image of the app.

Here is an example of something you might want.

AIA: app.aia (1.8 KB)

Blocks:

blocks

1 Like

I think it's for 1st time only

What do you mean?

yes, after the app close, image picker is reset and the background is back to white

Then you can use TinyDB to store the picture.

newapp.aia (2.2 KB)

Edit: Power Users, please correct me if I am wrong, maybe errors due to file storage.

3 Likes
  1. On Android 11+, no permissions are required if the ImagePicker is used.

  2. No permissions are declared in the Manifest of your app / APK (newapp.aia).

  3. And therefore no permissions can and will not be requested on Android < 10.

  4. The PermissionDenied event is never triggered.

  5. Your app just crashes on Android < 10.

  6. The reason why permissions are needed on Android < 10 is because when using the ImagePicker, AI2 redirects the file to another directory. For Android ≥ 10 this is the ASD, but for Android < 10 it is the /Pictures folder.

  7. If you pick the image via ActivityStarter, no storage permissions are required on all Android versions.


    app_2.aia (667.8 KB)

7 Likes

See also here:

I removed the Solution marker from post #9.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.