Sunday, May 13, 2012

Install APK to Android directly

1. Download and install Google Android SDK




First, you need to download and install the Google Android SDK (Software Development Kit). Please keep these notes with you when you are in the developer website.



  • Make sure that you satisfy the system requirements. Also keep in mind that if you are not programming, you may disregard a few details such as stuff about Eclipse (a programming environment).

  • After you download and install into a location (say: D:\android-sdk-windows\), you were directed to "simply unpack the starter package to a safe location and then add the location to your PATH". This means the following step


Right click My Computer for Properties, then…




… get to the Advanced tab. Look for 'Path' in 'System Variables' and 'Edit'. Add in the 'Variable value' your directory with 'tools' folder, all separated by semi-colons.


This is so that you can access 'adb' anywhere in the command line.


2. Download your Android USB Driver




Once you downloaded the Android USB driver, remember the directory it is under. You'll be placing that path to configure where to search for the driver to connect your Android phone. Please read up on the steps given in that driver download page before continuing. You'll be connecting your phone to the PC via USB on this step.



3. Configure some settings




Once you have successfully connected to the device:



  • Go to Android Settings/SD card & phone storage and disable Use for USB storage. You can enable it again later after you installed your third-party application.




  • Go to Settings/Application settings and enable Unknown sources.



4. Type command at command shell to install app




With your already downloaded .apk file on your local computer, type below this command to install the app.


adb install <Full path of the apk file><apk file name>





Installation should inform you of a successful installation. If you did fail, you may have a previous version of the app that needs manual uninstallation before reinstalling.


Cheers!

No comments: