On May 30, 2:31 pm, guruk <[email protected]> wrote: > I have a main activity, calling a preferences and there is a > switchuser point that switch the user > and call the main activity again. But than i dont need that the user > can go back, step by step, > It would be just fine i could say "kill all previous activites" in the > moment the user klick "switch user"
As a shot in the dark, would it be easier to use startActivityForResult () when calling your preferences activity, then when the prefs finishes it returns a result indicating the user changed, so in your main activity's onActivityResult() you then reinitialize? The Android NotePad tutorial works in a similar fashion when adding a new note. Ben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

