Set Image as Wallpaper

Hi,

I am trying to create a game, where at one point, we give users an option to set current screen as device wallpaper. I can see we have an api to capture screen, but is there any option to set this image as wallpaper, instead of saving to device(that will not be very intuitive to go to image gallery and set as wallpaper right :thinking: )?

Any help is appreciated. Thanks in advance!

I don’t think there’s a ready-made Solar2D API for that.

You can probably do this via https://developer.android.com/reference/android/app/WallpaperManager for Android, but I don’t know if iOS allows apps to set device backgrounds anymore.

I have a plugin for that

1 Like

Hi! Thanks for the info. I am a bit aware about solar2D/Corona apis, but I dont have experience with native platforms. Can you suggest how can I access native andoid/iOS apis from Corona/Solar? Thanks in advance!

Hi @Scott_Harrison, I know you developed so many plugins. But didnt know this existed. Thanks. And will it work on iOS? Thanks in advance!!

IOS does not allow you to set a wallpaper with a 3rd party app last I checked

Wow! @Scott_Harrison, implemented your wallpaper plugin. Works like a charm. Thank you so much!!