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.
Add ActivityStarter to the screen and configure its properties:
ActivityStarter1
Action:android.intent.action.VIEW
DataUri:http://example.com
Leave the other properties empty.
On the same screen, configure the event handler of the button to call the activityStarter1.StartActivity:
By pressing the button, the web browser is opened with the page http://example.com
use the activity starter with the action android.intent.action.VIEW
The data URI
is the website you want to open.
Then use:
call ActivityStarter1.StartActivity