Tuesday, October 30, 2012

[android-developers] startActivity without intent chooser - weird behavior with multiple browsers

hey peoples,

On 4.0.3 if I start an activity for an ACTION_VIEW (for an http url) without an intent chooser then I get the following weird behavior in the following order:
  1. start browser
  2. my activity: onPause()
  3. my activity: onResume()
  4. my activity: onPause()
  5. at this point the browser is loaded up fine - but my app went through an unnecessary (and potentially sluggish) restart

If I use an Intent chooser and pick any browser that comes up, this issues doesn't happen (e.g. no weird restart).

Is this an Android bug? I'm not seeing this issue on older versions of Android.

Any ideas?

Thanks!

-Chad

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate