> Since I can use an Intent to open an
> external activity (browser for example) and return without a recreate

Not necessarily. You may or may not get control again before a "recreate".
It all depends on what the user does. Assuming you will get control again
before a "recreate" is dangerous.

> let the developer choose when to
> recreate activities based on THEIR application.

To be clear, I think it'd be nice if there were a lighter-weight option
that applications could use for screen rotations. I also still think your
users will spit upon the ground you walk on if you don't build the
state-saving code to handle scenarios like answering incoming phone calls.

However, that's a topic for [android-discuss], where architecture rants
are par for the course.

You're on [android-developers], which implies you're looking for a
solution to a concrete problem. We're simply trying to tell you that the
solution of the concrete problem is to implement the state-saving code and
trust that there is a method to the madness.

The long-term solution is: take a gander at the Android code when it's
released as open source, and make more concrete suggestions of how your
vision could be implemented (hopefully) without breaking backwards
compatibility.

BTW, if you feel that developing state-saving code is too difficult
because of all those nested screens, consider whether you have too many
activities. Just because something is a different "screen" does not mean
it has to be a separate activity. IMHO, while activities are necessary for
separate entry points (e.g., view a note, edit a note) with separate
Intents, there are plenty of situations where too many activities causes
more pain than they're worth. Consider using tabs, ViewFlipper, dialogs,
popup windows, or other UI features that cut down the number of discrete
activities and, therefore, simplify your state-saving code.

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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