How to run .APK file on emulator

AndroidAndroid EmulatorEmulationApk

Android Problem Overview


> Possible Duplicate:
> How do you install an APK file in the Android emulator?

I download an APK file and I want to run it on an Android emulator but I don't know how. Please help me. Thanks!

Android Solutions


Solution 1 - Android

Steps (These apply for Linux. For other OS, visit here) -

  1. Copy the apk file to platform-tools in android-sdk linux folder.
  2. Open Terminal and navigate to platform-tools folder in android-sdk.
  3. Then Execute this command - > ./adb install FileName.apk
  4. If the operation is successful (the result is displayed on the screen), then you will find your file in the launcher of your emulator.

For more info can check this link : android videos

Solution 2 - Android

You need to install the APK on the emulator. You can do this with the adb command line tool that is included in the Android SDK.

adb -e install -r yourapp.apk

Once you've done that you should be able to run the app.

The -e and -r flags might not be necessary. They just specify that you are using an emulator (if you also have a device connected) and that you want to replace the app if it already exists.

Solution 3 - Android

Start an Android Emulator (make sure that all supported APIs are included when you created the emulator, we needed to have the Google APIs for instance).

Then simply email yourself a link to the .apk file, and download it directly in the emulator, and click the downloaded file to install it.

Solution 4 - Android

Step-by-Step way to do this:

  1. Install Android SDK
  2. Start the emulator by going to $SDK_root/emulator.exe
  3. Go to command prompt and go to the directory $SDK_root/platform-tools (or else add the path to windows environment)
  4. Type in the command adb install
  5. Bingo. Your app should be up and running on the emulator

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionmahdi View Question on Stackoverflow
Solution 1 - AndroidBhushanView Answer on Stackoverflow
Solution 2 - AndroidDan DyerView Answer on Stackoverflow
Solution 3 - AndroidNillocView Answer on Stackoverflow
Solution 4 - AndroidAnurag JainView Answer on Stackoverflow