How to Install and run Android Applications on the Android Emulator
For testing an Android Application on the computer using the Android Emulator, the android SDK will be required. Following steps need to be performed to run the App on the simulator:
1. Download the Android SDK from http://developer.android.com/sdk/index.html
2. Unzip the downloaded file to your C:\ drive of your computer.
3. Go to the folder, C:\android-sdk-windows, and run “SDK Setup”
4. Close the window that opens initially and in the main window, select select settings and check the Force https://... option.
5. Select Installed Packages and press the Update All button (make sure you are connected to the internet)
6. Select SDK Platform Android 2.1 … and install the package (package will be downloaded and installed, might take long as it is a large download)
7. After the package is installed, select the Virtual Devices menu.
8. Create a new virtual device, selecting Android 2.1 API as the Target. (suppose the name of the device created is Mobile1)
9. We are done with configuring the SDK, now open the command prompt (DOS mode) and change the path to the android SDK tools folder (cd C:\android-sdk-windows\tools)
10. Enter the command emulator -avd Mobile1
11. This will open up the Android Emulator (the emulator is really slow in loading). Now that the emulator is up and running, next step is to install the application.
12. Copy the android application file ‘xyz.apk’ in the C:\android-sdk-windows\tools folder. (here we are supposing that xyz.apk is the application we need to test on the emulator)
13. Open another command window, change the path to the SDK folder (cd C:\android-sdk-windows\tools)
14. Install the application to your phone by entering the command ‘adb install xyz.apk’ This will install the application on the Mobile Emulator.
15. Run the application from the App menu in the mobile simulator.
Thats it !! Done. Now you can install and test any Android Application on your PC.
Log in to answer.
Copyright © dBuggr.com - All Rights Reserved.