Intent i = new Intent();

i.setAction(Intent.ACTION_VIEW);
i.addCategory(Intent.CATEGORY_BROWSABLE);
i.setData(Uri.parse("http://...";));
startActivity(i);

On Mon, Sep 7, 2009 at 4:51 PM, Smelly Eddie <ollit...@gmail.com> wrote:

>
> I am reading through the SDK on Android .com and I am having trouble
> just finding an example using an intent to invoke a browser activity.
>
> I want to send the user to a specific URL.
>
> String authUrl = "http://domain.com/login";;
>
>
>            // bring the user to authUrl, e.g. open a web browser and
> note the PIN code
>            // ...
>                Intent webLogin = new Intent(this,NetApi.class);
>                startActivityForResult(webLogin,ACTION_VIEW);
>
>
> But I know this isnt even close, shoudl I use a browser view instead?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to