Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Web Browser intent

OP alex-p690

1st June 2014, 11:12 AM   |  #1  
OP Member
Flag Pitesti
Thanks Meter: 10
 
79 posts
Join Date:Joined: Jun 2012
More
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!
1st June 2014, 07:57 PM   |  #2  
MasterAwesome's Avatar
Senior Member
Thanks Meter: 816
 
1,150 posts
Join Date:Joined: Jun 2013
More
Quote:
Originally Posted by alex-p690

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:
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes