TheOathMan / Godot-Android-Live-Wallpaper

Make your Android Godot application run as a live wallpaper in the background.
MIT License
16 stars 4 forks source link

Two instances of the live wallpaper #1

Closed p-7 closed 4 months ago

p-7 commented 5 months ago

Thank you for your work, it's great that you managed to get it working @TheOathMan .

I remember using LIBGDX a long time ago for live wallpapers. I'm not sure if this interests you, but I believe the issue was resolved there.

Please check these methods; they might solve part of the problem. Perhaps it could help.


Please see onSurfaceCreated , onCreate function in Engine is little diffirent, maybe this help...

https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidLiveWallpaperService.java#L226


Thanks! Best regards.

TheOathMan commented 5 months ago

Thank you. I will take a look at their implementation. Good luck.

TheOathMan commented 4 months ago

I was able to solve the Multiple instances issue. Test the plugin in your device please and let me know if everything is working as intended. Your reference helped me refine the implementation. Thank you :)

p-7 commented 4 months ago

Sorry about that, I had to take off...

I gave it a test run and it seems to be working okay, thanks! :)

TheOathMan commented 4 months ago

Thanks, good luck.