开发者

How to create a web page in Android?

开发者 https://www.devze.com 2023-02-16 18:05 出处:网络
I want my activity to link to a web page whic开发者_运维知识库h I have created. I want to create the web page contents in Android.

I want my activity to link to a web page whic开发者_运维知识库h I have created.

I want to create the web page contents in Android.

How is it possible?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号