I am trying to change the background of an apk via android studio, using a function?
The idea is to make a "light/dark" mode by using a switch button.
Could anyone give me a lead on how I could do this please?
What do you mean by "via Android Studio" - are you talking about adding code and a UI for doing this in an app of yours? If so, I assume that adding a UI is not an issue (it would just be a checkbox or whatever that triggers switching the mode when touched).