:::: MENU ::::

[HOW TO] Run (Android) .apk file on your PC

Dear friends, I have started programming on Android system 2.1 and started writing articles on how the program should be written. You can get subscribed to my blog if you want more and more tips for developing articles on android. In this article I am teaching the command line installation of the application on android.

You might be here for some minor problems as:

You have compiled you application but couldn’t run the program in the emulator.
You might have got the way to install the program on your emulator.
You might not have clearly setup your android emulator.

I have been using Netbeans IDE for the development of android applications but what about you just have an .apk file and you may like to run any application without installing any developing tools. But first you must learn to start an emulator. Yes, you must have some patience to start an emulator.

You must follow some steps to start your emulator. You can get the step on my previous article. On the article just follow the downloading parts. The SDK Manager can be easily download from the android website as on the article. After that run the emulator and wait for the emulator to load its OS. Well most of the work has been accomplished. Now the extra step is just to type a command:

Goto Run > type cmd.

Move to the directory where you have installed Android SDK tool. eg. cd “c:\program files\Android\android-sdk\”

Again move to the platform-tools directory that was just installed during the previous article.

You find a file named adb.exe, you need to install the application via this program.

Just type adb.exe install <your_path_to_apk_file>. Your Emulator must be running during this process.

Now view the Menu on the emulator. You will find your application on it.

Have fun.


  • akshat porwal

    hey…!!
    it worked :D

    Thanku :))

  • Mani6060

    hi,
    i am getting error: device not found. while execute the command my emulator has running 

    • http://www.techjail.net/ Techjailer

      try this command:

      adb devices

      If you are getting no list of device, then you might not have started the emulator.

      You can open the emulator by following steps:
      Open the “ADV manager”
      If you don’t see any list of AVD(Android Virtual Device) the create a New one.
      Then select the device click “Start”.

      Have fun

      • http://www.facebook.com/profile.php?id=714910576 David Bandel

        idiot. it’s not as easy as just “create a new one”

        there are a ton of options when you click new and most of them are greyed out.

        why do you morons even write these guides?

        • http://www.techjail.net/ Techjailer

          When I wrote, the options were fewer, but now a days the options might have gone higher. I too love to cover as much as possible.
          Now a days I am onto other professional works, so I am quiet busy managing this. Help minor things out :)

  • Aaroniniguez123

    How is the speed on your emulator? When I’m running mine it’s incredibly slow, and the mouse lags

    • http://www.techjail.net/ Techjailer

      Sorry for late response, but yes the emulator loads very slowly. You cannot help with that.

  • Aamirshah369

    if application tries to download data it gives error after downloding.. cant extract data

    • http://www.techjail.net/ Techjailer

      Ok, the main problem of that may be you need to specify the “SD Card” volume.

      Open the “AVD manager” and click on the emulator that you are using. After that you Click on “Edit” and then increase the size of SD Card to be mounted on the Emulator.

  • Jackwsj

     Move to the directory where you have installed Android SDK tool. eg. cd “c:program filesAndroidandroid-sdk”
    Again move to the platform-tools directory that was just installed during the previous article.
    You find a file named adb.exe, you need to install the application via this program.
    Just type adb.exe install . Your Emulator must be running during this process.
    As I didn’t learn any programming language beforei totally not clear what these step is? 
    Can the author or someone post me some photo and show me how it works ? 

    • http://www.techjail.net/ Techjailer

      I guess I need to teach a brief step on that but I will just elaborate here as much I can.

      represents the application you developed using “netbeans/eclipse” that is located on “bin” folder of the project named after “myproject-debug.apk”(an example).

      So if you have any emulator regrading Android via “Android Virtual Machine” then with the help of the command on “cmd.exe” you can just install the application to your virtual machine.

      If you are still in confusion, you can post your skype ID here as comment(I will not publish that) so that I can help you in any way you want.

  • Amhyrra

    Hey its me again….I’m having trouble on the installation of the android 4.0.3 and the others.. It says “failed to fetch URL” and ” Connection to http://developer.sonymobile.com refused”…please help :(

    • http://www.techjail.net/ Techjailer

      The problem is with your ISP I guess, can you please open “developer.sonymobile.com”. If yes then their might be a problem in the SDK manager.

      But why actually you have a repository from “sonymobile.com”, I guess you should have a repository from google server.

      Can you post a detail on that problem.

  • john

    i’m having a problem about putting an apk.file to my xperia active without installing any developing tools……i hope u can help me

    • http://www.techjail.net/ Techjailer

      Yes, I can. You can mount your Apk to your sdcard and then Run the application. (Must enable Unknown Application to install from Sdcard)

  • Amy Stanley

    This apk file and other programs like com.cooliris.media along with other downloads regarding my android applications have been downloaded from a PC without my consent or knowledge. How do I remove these files? Please help…these are being controlled by someone else and its a violation of my privacy and makes using apps in my phone a lot more difficult

    • http://www.techjail.net/ Techjailer

      Its simple the un-installation on the Android. or from you PC with adb: adb uninstall “package name”

      the Package name are like the way you provided:
      eg: com.cooliris.media

  • http://www.facebook.com/profile.php?id=714910576 David Bandel

    if you’d mentioned how to run the emulator once you have the sdk, you might have writte a worthwhile guide.

  • http://www.facebook.com/profile.php?id=100003087483395 SkateRul Hybrid

    C:UsersUser>C:adt-bundle-windows-x86-20130219sdkplatform-toolsadb.exe inst
    all D:GamesApkcom.leftover.CoinDozer_51.apk
    216 KB/s (15134685 bytes in 68.393s)
    pkg: /data/local/tmp/com.leftover.CoinDozer_51.apk
    Failure [INSTALL_FAILED_CONTAINER_ERROR]

    C:UsersUser>
    in cmd it write like that when i try to install a game,how can i solve it? plz help me…

    • http://www.techjail.net/ Techjailer

      Might be some memory issue, update your ram, memory size. And might work? Looks like the file size is really huge.

      • http://www.facebook.com/profile.php?id=100003087483395 SkateRul Hybrid

        thanks it worked..but when i run the game pop up the mesej it say

        “Unfortunately coin dozer has stopped”

        what should i do?

        • http://www.techjail.net/ Techjailer

          I’m not quiet sure about that. Might be application fault. Like a virtual Device isn’t as perfect as Real device.

    • http://www.techjail.net/ Techjailer

      Got some solution Online:
      - remove this file from ur device
      /mnt/secure/asec/smdl2tmp1.asec

      If you don’t have root access, you need to mount the sdcard and remove it via pc:
      /.android_secure/smdl2tmp1.asec

  • http://www.halongmekongcruises.com/ halong mekong cruise

    I’, confued i got this message “Error: device not found – waiting for device – ”
    how can i resolve it now ,i’m just a newbie ?

    thank you !

    Post by:Halong Mekong

    • http://www.techjail.net/ Techjailer

      Ok, I guess you might have forgotten enabling USB Debugging mode? or you PC didn’t recognized your device. Try installing PDANet if your device driver isn’t installed. One of my friend told about the PDANet

      • http://www.halongmekongcruises.com/ halong mekong cruise

        Oh God,

        I want to say “Thank you” 1000 times LOL

        Thanks for best support

        • http://www.techjail.net/ Techjailer

          mp :)

  • http://www.techjail.net/ Techjailer

    Its hard to get time to manage blog now a days :(