How to run .apk files using command prompt



Step 1:  Download and Install Android SDK: It can be downloaded from the official google website- here is a link to Latest Android SDK  (for which you also need JAVA VM, JDK or JRE already    installed).  Read how to install it, before you proceed with this tutorial. Don't forget to update the SDK and also install the suitable platform version, in this tutorial we are going to use a stable Android Platform 1.5.
Step 2:  Get a sample APK file: Let's take Sudoku.apk, kindly download it. "Are you ready for installation?" WINDOWS XP/VISTA/SEVEN System Setting

NOTE : For this tutorial, the SDK has been unzipped to this Windows folder location: "E:\android-sdk-windows\"
Step 3:  Create and launch the emulator (Virtual Android device):

Either you can start the emulator directly by running emulator.exe from "E:\android-sdk-windows\tools\"
OR
Run the setup sdk "SDK Setup.exe" from "E:\android-sdk-windows\" and then create and start AVD (emulator), in the above picture you can see that we have already created bOtskOOl AVD using Android SDK and AVD manager.
After a few minutes a virtual Android shall boot up and then observe the desktop view, as shown in the picture. Press on menu button and you will find that the applications are arranged in a grid view.

Step 4:  Copy .APK files:
Now, manually copy and paste the Sudoku.apk  to the destination folder "E:\android-sdk-windows\tools\".
Step 5: Run adb command:
Go to Start>>run>>cmd (open a windows command prompt or shell) and type the following commands "highlighted in bold orange".
cd e:\android-sdk-windows\tools\  
comments: we do this in order to change our directory level to where the emulator is installed

adb install Sudoku.apk 
comments: android emulator command to install the Sudoku application in .apk format.
Thats all, it's done. You must get a success message, Hurray!! You have installed your application successfully.

Comments

  1. YOur blog title is run apk using command but you just explain how to install apk via adb command.

    ReplyDelete

Post a Comment

Popular posts from this blog

A Guide to Publishing Applications on Android Market