Sunday, November 15, 2015

how to Install apk file from pc to the Android device or emulator

Step to install apk file from pc to android devices or emulator

Windows:

  1. First you must connect you devices or start your emulator (which I will not gonna talk about it.)
  2. Then open command prompt and type adb install [apk path]  
    • (ps:replace the [apk path with the path to the apk file  you want to install into the device / emulator) 
    • == don't tell me adb command not exist.
    • which you not yet put the android-sdk\tools or platform-tools folder into the environmental path. Then you have to go to the tools folder and type the command again.
  3.  Ok installed. end of story. Thx


Linux:

  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 -
  4. ./adb install FileName.apk
  5. If the operation is successful (the result is displayed on the screen), then you will find your file in the launcher of your emulator.

Mac:

  1. PATH=$PATH:~/Library/Android/sdk/platform-tools
  2. Example : PATH=$PATH:/users/jorgesys/eclipse/android-sdk-mac_64/tools
  3. Then run adb.


If any problems can leave a comment belows. I will Try to solve it ...but not mac user. Thank you. =D


No comments:

Post a Comment