Friday, March 25, 2011

Re: [android-developers] Reuse webView between activities

On Fri, Mar 25, 2011 at 7:05 AM, Guilo <guilo.guilo@gmail.com> wrote:
> So if I understand well, the idea is to put the activity on the background
> when back is pressed and then put it back to foreground. And what about if I
> used onResume() with the new url as parameter ?

You cannot put a parameter on onResume(). Your Intent from
startActivity() should be delivered to onNewIntent() of the "full
content" activity, so you can determine what to display.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.5 Available!

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment