Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install apk files on my android emulator with Eclipse?

Tags:

android

I have eclipse and ADT and android SDK installed and I want to test apk files on my emulator.

I followed guides from stackoverflow, like this: How do I Install .apk files in the android emulator?

but these guides doesnt works a this point: I dont know where i have to put the APK file. For example, this command:

adb -s emulator-5554 install something.apk

It fails because can't find my apk file. Where i have to put it?

like image 640
NullPointerException Avatar asked Sep 14 '11 15:09

NullPointerException


People also ask

Can I install APK on Android emulator?

We just need the APK file to install it in the Emulator. First of all, we still have to open the Emulator and after that drag, your APK file and drop it in the emulator anywhere and that's it it will simply install that app in the Emulator.

How do I open APK files in eclipse?

You need to create an emulator using the Android Virtual Device Manager. Then when you run it as an android application it will launch the emulator. Should cover what you need to know. Save this answer.


1 Answers

You can put it anywhere on your system, just specify the path as part of your command line:

C:\android-sdk\platform-tools> adb -s emulator-5554 install C:\Users\Me\Desktop\myapp.apk

Or, change into the directory your APK is in first, then run your command:

C:\> cd %USERPROFILE%\Desktop
C:\Users\Me\Desktop> adb -s emulator-5554 install myapp.apk

Note: The above assumes you're on Windows, substitute UNIX-style paths if you're on Linux or Mac OSX.

like image 73
Justin ᚅᚔᚈᚄᚒᚔ Avatar answered Oct 31 '22 03:10

Justin ᚅᚔᚈᚄᚒᚔ