Android Emulator Built-in Web Browser

This section provides a tutorial example on how to use the Android emulator's built-in Web browser to visit a web page. You need disable the cable LAN driver, if you are using Wi-Fi.

To the test emulator, let's use its browser to visit my home page.

1. Launch the Android emulator and unlock the screen.

2. Click the Browser icon and enter "herongyang.com" using the key pad on the screen.

3. Click the enter key. After some time, the browser returns an error message: "Webpage not available - The webpage at http://herongyang.com/ could not be loaded because: net::ERR_NAME_NOT_RESOLVED"

What's wrong with the emulator? Searching the Internet, I found a post on stackoverflow by Vaughn (http://stackoverflow.com/questions/2039964/how-to-connect -android-emulator-to-the-internet), which suggests to disable the network cable port, if you are using a Wi-Fi connection. Because the emulator is trying to obtain DNS service from the cable port.

4. On Windows 7 system, go to "Control Panel\Network and Internet\Network Connections"

5. Right-click on "Local Area Network", and then click "Disable".

6. Restart the emulator, try the browser again with http://herongyang.com/. Cool, the browser works!

Android Emulator R24 - herongyang.com Page
Android Emulator R24 - herongyang.com Page

As you can see, my home page is not responsive enough to fit in the 4 inch screen of the emulator. I still need to improve it.

Table of Contents

 About This Book

 Installing JDK 1.8 on Windows System

Installation of Android SDK R24 and Emulator

 Downloading and Installing Android SDK R24

 Running Android SDK Manager R24

 Installing Android Platform 4.0.3 and Libraries

 Verifying Android Platform Installation

 Creating Android Virtual Device (AVD)

 Viewing Android Virtual Device (AVD) Details

 Launching Android Emulator in AVD Manager

 Android Emulator Starting Screens

 Android Emulator Built-in Apps and Widgets

Android Emulator Built-in Web Browser

 Android Emulator for 7 Inch Tablet

 Android Emulator for Google Watch

 Missing Emulator Engine Program for 'arm' CPUS

 x86 Emulation Requires Hardware Acceleration

 HAXM - Hardware Accelerated Execution Manager

 Installing Apache Ant 1.9 on Windows System

 Developing First Android Application - HelloAndroid

 Android Application Package (APK) Files

 Android Debug Bridge (adb) Tool

 Android File Systems

 AboutAndroid - Application to Retrieve System Information

 android.app.Activity Class and Activity Lifecycle

 View Objects and Layout Resource Files

 Using "adb logcat" Command for Debugging

 Build Process and Package File Content

 Building Your Own Web Browser

 Android Command Line Shell

 Samsung Galaxy Tab 3 Mini Tablet

 USB Debugging Applications on Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Archived Tutorials

 References

 Full Version in PDF/EPUB