Wednesday, November 14, 2012

Run .APK File On Android Emulator


1.     Go to sdk/platform-tools with the command cd /home/android-sdk/platform-tools you should copy the .apk you want to install in this directory and add the path of it to environment variable in variable PATH "you might need restart"
2.     List the devices with the command ./adb devices
3.     You can install your file with ./adb install .filename.apk

Example for step 2 :
./adb devices
     List of devices attached
     emulator-5554    device
Example for step 3 :
./adb install AndWebServiceTest.apk