Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need command line to start web browser using adb

Tags:

android

adb

How can I start a browser with the adb shell command and make it open a certain web page?

like image 525
Shrikant Tudavekar Avatar asked Aug 18 '10 12:08

Shrikant Tudavekar


People also ask

How do I run adb from my browser?

Open WebADB's website and click on the 'Add device' button. If you've connected multiple Android devices to your computer, choose the right one from the list of available devices. 3. After choosing the right device, click on 'Connect' to start using WebADB from your browser.

How do I access adb from CMD?

Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.

How do I run adb devices in terminal?

From Xamarin Studio, go to Tools, then select "Open Android SDK Command Prompt". This will open a terminal window and automatically navigate you to the Android SDK location. From there you can use the ADB command. Show activity on this post.


2 Answers

Running this command will start a web browser in android:

adb shell am start -a android.intent.action.VIEW -d http://www.stackoverflow.com 
like image 139
Joakim Lundborg Avatar answered Oct 04 '22 11:10

Joakim Lundborg


If your url's are symbol heavy you should also quote aggressively

adb shell am start -a android.intent.action.VIEW -d 'http://stackoverflow.com/?uid=isme\&debug=true' 
like image 26
ash_jungroup Avatar answered Oct 04 '22 11:10

ash_jungroup