Saturday, March 24, 2012

Re: [android-developers] Force opening web URLs & YouTube videos in Android phone's DEFAULT browser using Intent.

AFAIK you can't...

On Mar 23, 2012 12:40 AM, "Shajahan" <lovesaiju@gmail.com> wrote:
I am trying to launch browser with the specified URL. It works fine if
it's web URL, but when the URL detected to be a video(say YouTube
video) then it come up with choices to make between the browser &
YouTube App installed in the device. Instead of this how to force this
behavior to have the URL to open in DEFAULT Android phone's browser.

Uri youTubeUrl = Uri.parse("http://www.youtube.com/watch?
v=qC5W69uaoTA");
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, youTubeUrl);

Any ideas ?

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

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