[android-beginners] Re: How to Call Browser Activity
Thanks much all! so I wasn't *too* far off :) I appreciate the guidance. -Eddie On Sep 7, 10:07 am, Andrei Bucur wrote: > 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 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 -~--~~~~--~~--~--~---
[android-beginners] Re: How to Call Browser Activity
Smelly Eddie 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); startActivity(new Intent(ACTION_VIEW, Uri.parse(authUrl))); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-beginners] Re: How to Call Browser Activity
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 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 -~--~~~~--~~--~--~---