[One of WebView learning]: Introduction to Web Apps, webviewapps

Source: Internet
Author: User

[One of WebView learning]: Introduction to Web Apps, webviewapps

Today, we will start to learn about WebView and Web Apps development. The main content is from the official Android documentation and subsequent practical examples.

 

(Blog address: http://blog.csdn.net/developer_jiangqq), reprint please note.

Author: hmjiangqq

Email: jiangqqlmj@163.com

Basically, in Android, we have two ways to provide applications: 1. based on the client application (also developed using AndroidSDK and installed the APK file on the user's device), 2. based on web applications (using Web development standards and without installation on any user devices)

If you choose to develop a web-based application for Android devices, mainstream web browsers on Android are still supported (such as WebView FrameWork ), this will provide a special view and style attribute, so that our developed application can display the correct size and zoom ratio on all the screens.


[Figure 1]: There are two ways to display web content: ①: Use the Android Web browser; ②: Create an application containing the WebView browser view control.

We can use the Android browser or our own Android app to display web content. However, we should not simply develop an AndroidAPP to display your web content. On the contrary, the webpage content embedded in AndroidAPP should be specially designed for special scenarios. You can even define an interface between your AndroidAPP and Web page. In this way, you can use JavaScript in the Web page in the Android APP to call AndroidAPIs of an Application developed based on Web design.

 

Next we will develop a Web page for Android devices. Let's look at the following article:

1. Support Web Apps on different screens

Main Content: 1. Develop mobile device applications. We use WebView. 2. Develop a suitable Web page for Android devices. 3. Support for Multi-Resolution

2. Use WebView to create WebApps

Main Content: 1. Use WebView on AndroidApplication to embed web pages. 2. Bind Javascript and AndroidAPIs.

3. migrate to the WebView of Android4.4

4. debug Web Apps

Main Content: 1. Use the Javascript console APIs to debug Web Apps

5. Web Apps Best Practices

Main Content: 1. A series of rules to be followed for developing efficient WebApps for Android

6. Examples of WebApps Development


Use webview as an android client in the original web system. Which of the following instances can be used for learning?

This is a lot on the Internet. You just need to check the webView details. There is a very short piece of code. I have a demo here, which is quite simple.
 
How does Android WebView log on to a website and retypeset it?

Why does webView need to be re-formatted? What page is displayed when you access it. Through webView. The property of getSettings is that webView supports JS. Form, database, and cache. Zoom. And RequestFoucs. By setting these attributes, you can basically meet the requirements of the page. JS and other special cases need to be rewritten. It is estimated that your problem is not focused, through webView. Requestfoucshould be okay. I have been working on WebView recently, and there are no basic problems. Ask me another question. Everyone learns from each other.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.