Here nothing difficult. Very Easy and simple step for Install an .apk file in the Android Emulator using command prompt (cmd) without Eclipse.
We are going to install .apk file on windows command line with Android Emulator. We can install .apk using Eclipse. But here we making in the Android Emulator with command prompt (CMD).
Install .apk file in Android Emulator using command prompt (cmd) without Eclipse
- Execute Android Emulator
- Place of .APK file:
- In CMD:
First have execute the Android Emulator.
Place your .apk file into the ‘platform-tools’ folder or ‘android-sdk\tools’ folder.
Open your Command prompt. Then navigate to platform-tools\ folder of the android-sdk folder.
For Windows XP,7 or 8 platform, run the following command line in command prompt,
adb install karsho.apk
Here, karsho.apk is your .apk file name. This will be install in the Internal Memory of the Emulator.
Always make sure the Path of .apk file. For example,
adb install C:\Users\User-name\Project\new.apk
If you want to install in SD-Card of the Emulator, then fun following command line
adb install -s karsho.apk
For Ubuntu/Linux and Mac:
For Ubuntu/Linux or Mac platform, Just use following command line,
./adb install karsho.apk
For more reference: ADB Helps