如何在App Inventor中打开网页 [英] How can I open a web page in App Inventor

查看:1837
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆