Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,250 Members 41,087 Now Online
XDA Developers Android and Mobile Development Forum

Web Browser intent

Tip us?
 
alex-p690
Old
#1  
Member - OP
Thanks Meter 10
Posts: 73
Join Date: Jun 2012
Location: Pitesti
Default Web Browser intent

Hi!
I'm trying to open Chrome or any other web browser, but I also need to pass some simple data strings. Is there any way to fill in some text boxes?
I am open to any suggestion.

Thanks!
 
MasterAwesome
Old
#2  
MasterAwesome's Avatar
Senior Member
Thanks Meter 683
Posts: 1,067
Join Date: Jun 2013
Quote:
Originally Posted by alex-p690 View Post
Hi!
I'm trying to open Chrome or any other web browser, but I also need to pass some simple data strings. Is there any way to fill in some text boxes?
I am open to any suggestion.

Thanks!
Pass on some simple data string? like URL? if yes then you can store your URL in a uri(uniform resource identifier) format then start an intent

Code:
Select Code
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);
“Be yourself; everyone else is already taken.”― Oscar Wilde
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes