Sunday, August 21, 2011

Install and remove APK Files on Android Device Emulator (Windows)

Install APK

1. Download android SDK.
2. Go to $SDK_ROOT/tools or $SDK_ROOT/platform-tools directory and execute the file ‘emulator.exe’. You might need to also include android virtual device (AVD) to command line execution for example,

./emulator -avd TestDevice
3. Save/copy the APK file directly in the $SDK_ROOT/tools or $SDK_ROOT/platform-tools directory.
4. Goto Shell/Terminal/CommandPrompt, adb install fileName.apk (You will need to shell/terminal/cmd sessions live)

or ./adb install fileName.apk
5.If there is ‘Path not found’ error then you need to add $SDK_ROOT/tools directory to your system PATH settings correctly.

Remove APK

1.Click on menu and then select settings icon >> Click on applications tab>>Go to Manage applications
2. Find the application which you want to remove and uninstall.

No comments: