Android

Android is an open-source Linux-based operating system designed for (but not limited to) touchscreen devices such as mobile phones and tablets.

Most apps a written in a customised version of the Java programming language. The most popular IDE for Android development is Eclipse. The Android SDK can be downloaded from here, which includes the Android API and the Eclipse editor, with the Android plugin pre-installed.

Displaying A Web Page In Your App

Web pages can be displayed in your app through the WebView interface. The WebView class is an extension of the View class.

You’ll need to have internet access to display the web page, so you’ll have to request INTERNET permission in your manifest file.

Requesting Internet Permission

If you want to use the internet in your app, you have to add the permission to the manifest file as follows:

Make sure to add the permission between the manifest tag, and above the application tag.

Javascript

By default, Javascript is disabled in a WebView. You may notice that web pages aren’t displaying correctly, or if they are, they aren’t responding correctly. This is probably because Javascript is not enabled. You can enable it through the WebSettings object of WebView, by calling setJavaScriptEnabled(true);.

Posted: October 11th, 2013 at 9:41 am
Last Updated on: April 9th, 2017 at 12:12 pm