If you want to deliver a web application as a part of a client App, can use WebView. The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout.
It does not include any features of a fully developed web browser, such as navigation controls or an address bar.
The demo code as below:
1. Import the Web View class
import android.webkit.WebView;
2. Declass Web View and use loadUrl
WebView webView = new WebView(this);webView.loadUrl("
setContentView(webView);
3. Also need to add permission to access your Internet.
Add permission setting at androidmanifest.xml <uses-permission android:name="android.permission.INTERNET" />
4. Develop web and make layout similar to Android App.
For more details, refer to http://developer.android.com/guide/webapps/webview.html.
Demo code:
http://wangminshe89.iteye.com/blog/1419813
http://www.gitshah.com/2011/02/android-fixing-no-internet-connection.html
http://www.apkbus.com/android-20751-1-1.html
Demo code:
http://wangminshe89.iteye.com/blog/1419813
http://www.gitshah.com/2011/02/android-fixing-no-internet-connection.html
http://www.apkbus.com/android-20751-1-1.html
沒有留言:
張貼留言