How can I open a web page in App Inventor

Randel Fordberg picture Randel Fordberg · Mar 5, 2015 · Viewed 22.2k times · Source

I have a webviewer which is the main application andbelow the webviewer is a button. I would like to open a web page in the user's web browser when the button it clicked. How can I do this in App Inventor?

Action: android.intent.action.VIEW 
DataUri: http://example.com 

The above as instructed in the documentation isn't working.

Answer

MirecXP picture MirecXP · Mar 5, 2015

Add ActivityStarter to the screen and configure its properties:

ActivityStarter1
Action:android.intent.action.VIEW
DataUri:http://example.com 

Leave the other properties empty.

enter image description here

On the same screen, configure the event handler of the button to call the activityStarter1.StartActivity:

enter image description here

By pressing the button, the web browser is opened with the page http://example.com

enter image description here