Rendering HTML without an activity
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.
精彩评论