start the activities with startActivityForResult(intent,MY_CODE) and on each
Activity override onActivityResult close that activity

protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
        switch (resultCode) {

        case Constants.MY_CODE:
            this.setResult(Constants.MY_CODE);
            this.finish();
            break;
        }

        /* Finally call the super()-method. */
        super.onActivityResult(requestCode, resultCode, data);
    }

On Thu, Jan 22, 2009 at 2:20 PM, <[email protected]> wrote:

>
> Hi developers............
>
>                I have a problem. I have a project which has 5
> activities. All the activities are connected through intent. I have a
> exit button to exit the whole project . I have used finish() function
> but it just close the current activity. It works like back. Please
> give me the appropiate funtion replace of finish() by which i can exit
> my project.
>
>
>
>
> Suman.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to