Randel Fordberg Randel Fordberg - 27 days ago 8
Android Question

How can I open a web page in App Inventor

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

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