如何在 Android 中创建网页?

发布于 2024-10-21 20:25:16 字数 68 浏览 3 评论 0原文

我希望我的活动链接到我创建的网页。

我想在 Android 中创建网页内容。

怎么可能呢?

I want my activity to link to a web page which I have created.

I want to create the web page contents in Android.

How is it possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野侃 2024-10-28 20:25:16

A little unclear what your requirements are... But it sounds like WebView is probably what you are looking for.
It allows you to include web pages inside of your app. i.e. linking to a web from within a view, and stay within an app. This also allows you to potentially "create" content inside of an activity, save it to the file system and load it through your WebView. Otherwise, if you want to "create" content you can use your own homegrown web services to send content to a remote server to then accessed by your webview, or through the regular browser.
If you are just trying to open a link from your app in the standard browser try looking using intents. See here for an example.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文