On 24 Okt., 19:54, "Robert K." <[EMAIL PROTECTED]> wrote: > Question: Why is it better to start a new activity if you want to > change screen to a new view (for example to edit some notes on a > separate text field)?
I believe that starting a new activity will give you automatic view hierarchy on the back button and setContentView() will not. Also, if the screen you want to change to is at all generic, you can use an implicit intent so that other programs which do the same thing may be chosen if the user prefers. For the example you gave, editing a note in a separate text field, ACTION_EDIT with a URI for the note text would allow the user to drop in a new text editor application and use it to edit notes from your application. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

