Android API Guides web app, androidguides
Web Apps Overview
There are two ways to load an application to android: one is the client application (use androidsdkand install an installer named .apk), and the other is the web application (that is, according to the network standard specification, load through the browser ---- this method does not require installation of anything on the user's equipment vendor ).
Web selection depends on several factors, but for android, it is very simple to develop a web app.
. Support window ----- determine the size of your web application based on the screen size.
. CSS and js features ----------- allows you to provide images of different styles and sizes based on the resolution pixel density of the screen.
Therefore, if you want to develop a web application, you do not need to consider screen adaptation. On Different android device screens, the web page should be displayed very well, which has been implemented for a long time.
Another major feature of Android is that you do not need to create a pure client or a pure web. You can mix the two methods by embedding web pages in the client (using the webview control in layout.
There are two ways to load an application to android: one is the client application (use androidsdkand install an installer named .apk), and the other is the web application (that is, according to the network standard specification, load through the browser ---- this method does not require installation of anything on the user's equipment vendor ).
Web selection depends on several factors, but for android, it is very simple to develop a web app.
. Support window ----- determine the size of your web application based on the screen size.
. CSS and js features ----------- allows you to provide images of different styles and sizes based on the resolution pixel density of the screen.
Therefore, if you want to develop a web application, you do not need to consider screen adaptation. On Different android device screens, the web page should be displayed very well, which has been implemented for a long time.
Another major feature of Android is that you do not need to create a pure client or a pure web. You can mix the two methods by embedding web pages in the client (using the webview control in layout.
1. You can access your web page through a browser or your android app. However, you should not develop a simple application to start loading your web site. Of course, the embedding of these web applications is specially designed for special environments. You can even define interfaces between android applications and web pages to allow your android applications to call web page js APIs, or provide android APIs to web applications.
Webview has been used in android layout since android1.0 to load embedded web content and bind js to android applications. After adding more screen devices (adding high and low resolutions) to android, the WebKit framework attribute is added to android2.0, allows a webpage to specify window properties and change the density of the window to modify the style and image resources. Because these attributes are part of android webkit, both the android browser (default browser) and webview support the same window and screen density attributes.
To develop web applications on android devices, read the following documents:
Targeting Screens from Web Apps
How to determine the proper size of web applications and support multiple screen density on android devices. The information in this document is very important. If you want to develop a web application (at least on android devices ), especially for the development of mobile devices and webview.
Building Web Apps in WebView
How to Use webviwe in your android app to embed web pages and bind JavaScript APIs
Best Practices for Web Apps
In practice, you should follow a series of things to provide an effective web application on your android device