vidhyabharathi
Lurker
I am an android application developer.
I have a doubt in handling the home button, I have done with lot of research in handling the home button but could not find the correct solution for it.So I have found a way where we can get the event when the home button is clicked where we need to add the following code in the manifest file
in the activity.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Once i have done with this when we try to click on the home button we get the alert dialog with the options "Launcher" and "MYApplication" with "Always" and "just Once"
The user need to select any one of the options and then click on the "Always" or "Just Once". But my concern is that,
Is their any way that we can handle this dialog programmatically.
Thanks in advance......
I have a doubt in handling the home button, I have done with lot of research in handling the home button but could not find the correct solution for it.So I have found a way where we can get the event when the home button is clicked where we need to add the following code in the manifest file
in the activity.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Once i have done with this when we try to click on the home button we get the alert dialog with the options "Launcher" and "MYApplication" with "Always" and "just Once"
The user need to select any one of the options and then click on the "Always" or "Just Once". But my concern is that,
Is their any way that we can handle this dialog programmatically.
Thanks in advance......