陈嘉炜的blog WebView

-One of the controls for displaying web pages in Android: WebView-
.

There are two directions for Android application layer development.

  • Client development
  • HTML5 mobile development

Use HTML5 + CSS + JS to build a Web version of the application, and this intermediate medium is the WebView, and the Web and Web pages can interact via JS, for example, Web pages read phone contacts, call the phone related API, etc. !

And compared to native client development, HTML5 mobile has an advantage: It can be arranged by percentage, and if there is any change in HTML5, we don’t need to re-download to the next app like the client, and then overwrite the installation, we only need to modify The next page can be! The client… is terrible, of course, HTML5 also has a shortcoming, that is, performance issues, data accumulation, power consumption problems, as well as splash screen and so on…