How to open a URL from terminal How to open a URL from terminal unix unix

How to open a URL from terminal


Just use Intent.ACTION_VIEW (i.e. android.intent.action.VIEW), e.g.:

am start -a android.intent.action.VIEW -d http://www.xing.de

This way the XING site is started. If you have more than one browser installed, you can of course add the component name of the browser you want to start, e.g.:

am start -a android.intent.action.VIEW          -n com.android.browser/.BrowserActivity -d http://www.xing.de

Cheers!