如何在App Inventor中打开网页 [英] How can I open a web page in App Inventor
问题描述
我有一个webviewer,它是主要应用程序,在webviewer下面是一个按钮.单击按钮后,我想在用户的Web浏览器中打开一个网页.如何在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.
推荐答案
将ActivityStarter添加到屏幕并配置其属性:
Add ActivityStarter to the screen and configure its properties:
ActivityStarter1
Action:android.intent.action.VIEW
DataUri:http://example.com
将其他属性保留为空.
在同一屏幕上,配置按钮的事件处理程序以调用activityStarter1.StartActivity:
On the same screen, configure the event handler of the button to call the activityStarter1.StartActivity:
通过按下按钮,将打开网页 http://example.com
By pressing the button, the web browser is opened with the page http://example.com
这篇关于如何在App Inventor中打开网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!