I want an application that acts as a Home Replacement app. There are several activities when you first launch the app that allow you to configure basic settings. Then you get to the Home Screen. In the Android Manifest, I have added the following lines:
<activity android:name="com.tabletnanny.HomeScreenMain"
android:theme="@style/Theme"
android:launchMode="singleInstance"
android:stateNotNeeded="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Now what I want is the following: every time that the user gets to this activity, the box that prompts you which home screen you want to set as default pops up. This has to pop up no matter what every time the app is launched, even if during a previous launch, the user accidentally selected the wrong Home Screen "Always". I also have an "Exit" button on this Home Screen. Tapping the "Exit" button will bring up this dialog box once again and allow you to select the default Home Screen again. How can I do this in the java code?