Re: [android-developers] Exit function in android application

2011-07-01 Thread Mark Murphy
On Fri, Jul 1, 2011 at 12:14 AM, nageswara rao rajana nagu.raj...@gmail.com wrote:      In application i have 4 activities, and also exit in my menu option if i click exit in any activity it is destroying the current activity      and displaying the previous activity. But my requirement is if  

[android-developers] Exit function in android application

2011-06-30 Thread nageswara rao rajana
Hi, In application i have 4 activities, and also exit in my menu option if i click exit in any activity it is destroying the current activity and displaying the previous activity. But my requirement is if i click exit in activity the application should be killed and should display

Re: [android-developers] Exit function in android application

2011-06-30 Thread νιנαソkum
**try this one Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); On Fri, Jul 1, 2011 at 9:44 AM, nageswara rao rajana nagu.raj...@gmail.comwrote: Hi, In application i have 4

Re: [android-developers] Exit function in android application

2011-06-30 Thread nageswara rao rajana
Hi vijay, If i use this code will all activities will destroy in my application or they will run inbackground. Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);