I’m creating a launcher app that can switch between the standard home screens and my own custom. I think I’ve discovered where I need to switch the reference file for the launcher, but I don’t know how to do it.
The line of code is:
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
which I want to switch to my own file, but I don’t know how to do it, as it would have to be in the java file created, in the CheckBoxPreference onClick method.
Is this possible?
I suspect you misunderstood the role of
xmlns:launcher="..."..apkas part of resource (the .xml file that has this line). Strictly speaking, it cannot be changed after application is compiled.So, basically, you can’t change the value of
xmlns:launcher, and even if you could, it wouldn’t help you.