3

I got an APK from the Internet.

Can I install and run the APK on the emulator?

If yes, how to do it?

shkschneider
  • 17,833
  • 13
  • 59
  • 112
Rohith
  • 991
  • 4
  • 18
  • 31
  • Possible duplicate: http://stackoverflow.com/questions/4512458/androidhow-to-run-apk-file-on-emulator – shkschneider Aug 07 '12 at 10:16
  • possible duplicate of [How do you install an APK file in the Android emulator?](http://stackoverflow.com/questions/3480201/how-do-you-install-an-apk-file-in-the-android-emulator) – skynet Aug 07 '12 at 13:37

6 Answers6

3

Use adb to install apk on emulator (or any connected device as well):

adb install file.apk

Re-install, keeping application data:

adb install -r file.apk

adb documentation is available here: http://developer.android.com/tools/help/adb.html

StenaviN
  • 3,687
  • 24
  • 34
3

Yes it is possible

first copy that .apk file into "platform-tools" folder of your android-SDK then open the command prompt and go to "platform-tools" folder now type "adb install _" here underline means your .apk file name. then press enter. it's DONE

Be sure that your emulator is running.

Yash
  • 1,751
  • 13
  • 14
1

Yes you can.

Easiest way is to download the apk file from within the browser on the emulator, then install it from the notifications menu.

Alternatively, you can install the Android SDK (which you might already have done if you have the emulator) and use adb install my.apk which should install to any available device (so long as only one is available). Use adb devices to check what devices are available - when you run the emulator, it should show up there.

N.B. you will need to enable unknown sources in the applications menu of settings for this to work.

Billy Moon
  • 57,113
  • 24
  • 136
  • 237
0

Place it in your host and download the .apk file from your emulator browser.

Shalini
  • 1,733
  • 4
  • 17
  • 31
0

Yes!

Place your .apk file in the platform-tools folder of SDK, go to command prompt (path to ADB) and run the following command:

adb install your_apk_file.apk
waqaslam
  • 67,549
  • 16
  • 165
  • 178
0

I'm not sure if it will work, but try to open the File Explorer of the emulator through DDMS perspective in Eclipse, and copy/paste your apk in a folder. Then navigate to that folder from your emulator and launch the apk.

Andy Res
  • 15,963
  • 5
  • 60
  • 96