Saturday, July 10, 2010

Installing android applications on simulator / device

Basically these are the steps to install android application in simulator/device.

* Via USB Cable to simulator/device from computer
* Install from Android Market


******** Via USB Cable to device from computer *********

Pre-Requisite: There should be Android SDK installed on the computer.
The tool you need is adb.exe.

1. Type adb in a command shell will display all the options, adb.exe is SDK tool used to install applications and interface with the device.

2. Connect Your Android Phone to your computer using USB cable. You need to install Drivers for this. This driver is required for adb to interface with an android phone using USB cable.

3. Go to Android Settings / SD card & Phone storage and disable "Use for USB storage". You can enable it again later after you installed your third-party application.

4. Go to Settings/Application settings and enable Unknown sources.

5. Connect the device to your computer using the USB cable and install the driver you downloaded in step 2. After installing the driver you should see ADB Inteface in Windows Device Manager.

6. If you made it this far, download the APK file to a local folder on your computer, something like C:\MyAPKs will work fine and install it using ADB. Open prompt and run the below command to install the application.

> adb install .apk if your application is in tools folder, otherwise

> adb install Path_of_Your_Application

Now enjoy with your application !!!


******** Via USB Cable to simulator from computer*********


PreRequisite: There should be Android SDK installed on the computer.

From one command prompt:

1. First create a virtual device the below command

> android create avd -n -t 2

2. Run the created virtual device using the below command

> emulator -avd

3. The created virtual device will be opened.

4. Copy the application file (.apk file) to the tools folder under the SDK installation folder or some other folder.

5. Open another command prompt and run the below command to install the application.

> adb install .apk if your application is in tools folder, otherwise

> adb install Path_of_Your_Application

6. Application will be installed on the virtual device/emulator.


***********Install from Android Market************


1. Install and open the Apps Installer application from the "Android Market".

2. This opens a view showing *.apk application names in the sdcard root directory.(note, if no AppNames are listed you have no .apk files in the root directory of the SDCard)

3. Touch the app name to initiate installation of the app.

4. The app is now installed.

1 comment:

  1. I like your post there is a lot of information about software testing, which i would like to learn, thank you for the great guide. Very useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful.Keep up the good work.. Read more about QA Services

    ReplyDelete