开发者

Rendering HTML without an activity

开发者 https://www.devze.com 2023-03-01 09:40 出处:网络
I\'d like to render some HTML for the side effects of such rendering (i.e. pinging a backend server). When my activity is visible, of course I can just show the HTML in a WebView. However, when the ac

I'd like to render some HTML for the side effects of such rendering (i.e. pinging a backend server). When my activity is visible, of course I can just show the HTML in a WebView. However, when the activity is not visible, I want to render the HTML without showing the activity as this would be disruptive to the user.

Is this possible to do on Andr开发者_C百科oid?


Look at the classes/interfaces in org.apache.http for ways of handling HTTP actions without using a WebView.

You could place your code in an Android Service which will run without interrupting the user.

0

精彩评论

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