I have an app that I want to set as the Default Home Screen, but I'm running into a strange problem.
I have a setting that allows the user to select the default Home Screen.
I use the following code to allow them to select the Default Activity:
Intent selector = new Intent(Intent.ActionMain);
selector.AddCategory(Intent.CategoryHome);
selector.AddCategory(Intent.CategoryDefault);
selector.SetComponent(new ComponentName("android", "com.android.internal.app.ResolverActivity"));
StartActivity(selector);
With no Default currently set, I run that code and I select my app as the Default and tell it to Always use that.
Now, I run the code again, and tell it to use a different Activity (not mine) and to Always use it.
The problem is, is that it never switches to anything different if the default set.
I've seen other applications that allow you to do this, so I'm missing something, I just don't know what.
I'm testing this on my Samsung Galaxy S4 with API Level set to 14.