To install an Android application file (*.apk) on Emulator, follow these steps:
Step-1: Create a blank batch file.
Step-2: Open the file in editor.
Step-3: Copy the format:
Step-4: Paste it in the file.
Step-5: Replace the instruction-text inside square-bracket with the actual paths.
Step-6: Verify it, if it looks similar to the sample given below:
Step-7: Save the file.
Now double-click the batch file to install the app in android emulator.
Note: This method can be used while development when the developer need to install the *.apk file again and again.
Step-1: Create a blank batch file.
Step-2: Open the file in editor.
Step-3: Copy the format:
$ [drive-name]:
$ cd "[actual-path-to-android-sdk-folder]\android-sdk-windows\platform-tools"
$ adb -e install -r "[actual-path-to-apk-file]"
Step-4: Paste it in the file.
Step-5: Replace the instruction-text inside square-bracket with the actual paths.
Step-6: Verify it, if it looks similar to the sample given below:
$ d:
$ cd "D:\Programs\android-sdk_r15-windows\android-sdk-windows\platform-tools"
$ adb -e install -r "D:\Workshop\Flash\ANDROID\test1\test1.apk"
Step-7: Save the file.
Now double-click the batch file to install the app in android emulator.
Note: This method can be used while development when the developer need to install the *.apk file again and again.
Comments
Post a Comment