This shows you the differences between two versions of the page.

Link to this comparison view

content:android:tips:install_apk [15/05/2013 15:48] (current)
Line 1: Line 1:
 +====== How to install an APK file on an Android device ======
 +An [[http://en.wikipedia.org/wiki/APK_(file_format)|APK file]] contains a single application for Android.  There are several ways to install an application from an APK file.
 +==== Method One: Download the APK directly onto the device ====
 +This method is suitable if the APK file is accessible as a download on the network (ie, clicking a link on a web page) and the device has network access (eg, via 3G mobile data plan, Wi-Fi or tethered USB).
 +  - Start the device's Web Browser app (usually an icon on the Home page)
 +  - Either:
 +    * navigate to the page containing the link, and press the link, or
 +    * enter the URL of the download link directly into the browser location field
 +  - This will cause the device to start downloading the APK file via the network  Once the file is downloaded, a //Download complete// notification will appear in the Android status bar
 +  - Pull down the status bar to reveal the notification in detail, which will show the full name of the APK file
 +  - Press the notification to install
 +==== Method Two: Transfer the APK via USB ====
 +This method is suitable if you have the APK file on a laptop or workstation and a USB cable for connecting the device.  The Android device must have a File Manager app.
 +  - Connect the device to the laptop/workstation with the USB cable
 +  - The device should raise a //USB connected// notification
 +  - On the Android device:
 +    - Pull down the Android status bar to reveal the //USB connected// notification
 +    - Press the //USB connected// notification
 +    - You should get a screen giving you the option to operate the device as //USB storage//
 +    - Activate USB storage mode
 +  - The laptop/workstation should respond by showing the device as an external storage device
 +  - On the laptop/workstation:
 +    - Open the external storage device.  There should be a folder (directory) called //download// in the device
 +    - Copy the APK file into the //download// folder
 +    - Disconnect (unmount) the external storage device
 +  - On the Android device:
 +    - Turn off USB storage
 +    - Start the File Manager app
 +    - Navigate to the SD Card (also known as External Storage)
 +    - Scroll down the SD Card directory to find the //download// folder
 +    - Navigate into the //download// folder
 +    - The APK file should be there
 +    - Press the APK file to start the installation
 +==== Method Three: Use the Android Debug Bridge (adb) ====
 +This method is suitable for developers who have the APK file on a laptop or workstation and a USB cable for connecting the device, and have the [[http://developer.android.com/tools/help/adb.html|Android Debug Bridge]] installed as part of the [[http://developer.android.com/sdk/index.html|Android SDK]].
 +  - Connect the Android device to the laptop/workstation with the USB cable
 +  - On the laptop/workstation, ensure that the device is visible: <code>
 +$ adb devices
 +List of devices attached 
 +54A51BD47904 device
 +  - Install the APK file using the following command: <code>
 +$ adb install file.apk