Rohith
Rohith

Reputation: 1001

Is it possible to run the .apk file on android/emulator?

I got an APK from the Internet.

Can I install and run the APK on the emulator?

If yes, how to do it?

Upvotes: 3

Views: 7713

Answers (6)

Yash
Yash

Reputation: 1751

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.

Upvotes: 3

Andy Res
Andy Res

Reputation: 16043

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.

Upvotes: 0

waqaslam
waqaslam

Reputation: 68167

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

Upvotes: 0

StenaviN
StenaviN

Reputation: 3697

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

Upvotes: 3

Shalini
Shalini

Reputation: 1733

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

Upvotes: 0

Billy Moon
Billy Moon

Reputation: 58521

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.

Upvotes: 1

Related Questions