In this Android tip, I am going to show you how to create a virtual device in Eclipse ADT. A virtual device represents an actual device. It is useful to developers during applications development. It is needed to run your Android applications. In application development process, developers test their applications' user interface and outputs on the virtual device before the applications are installed and used in the actual devices.
To create a virtual device for your Android project, select Window from the menu bar of Eclipse ADT. Then select Android Virtual Device Manager. In the Android Virtual Device Manager dialog box, click the New... button to create a virtual device. You will fill in the form some information such as device name, target device, target API, memory options (RAM and VM Heap), and internal storage and SD Card (external) sizes. For example, for my Android projects, my virtual device contains the following information:
-AVD Name: emul
-Device: 3.4"WQVGA (240x432: ldpi)
-Target: Android 4.3 - API Level 18
-RAM: 512, VM Heap: 16
-Internal Storage: 20 (MiB)
-SD Card size: 800 (MiB)
After you fill in the information, click OK to create the virtual device.
Now you have a virtual device. You can run your first application by selecting Run from the menu bar. Then select Run Configuration. In the Target tab, check the virtual machine (emul) that you have created. Then Click the Run button to run the project.
Posted by: Dara | post date: 09-11-2014 | Subject: Android Apps Development
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: