2 – Installing your signed APK onto your Android device

 

If you did the optional steps in the “Getting Started with Android” section, then skip down to the next set of instructions!

To transfer your signed .apk file to your device, follow these steps (If you didn’t do the optional steps in the getting started with Android section):

  1. Open TerminalAP1
  2. Navigate to your Android SDK folder (it should be named android-sdk-macosx by default). Inside your Android SDK folder, should be another folder called “platform-tools”AP2
  3. In Terminal, type “cd” followed by a space, then drag the platform-tools folder into terminal (this will add the path to the location of your platform-tools folder so that you don’t need to type it out) then hit enterAP3
  4. Terminal should now be looking at the correct place to run adb commands, and you can confirm your device is connected to your Mac using the command “./adb devices”ADB Devices

  5. To install the signed .apk, type the command “./adb install”, followed by a space, then drag your signed .apk file into terminal and hit enter.ADB Install

To transfer your signed .apk file to your device, follow these steps (if you did the optional steps):

  1. Open TerminalOpenTerminal2
  2. Confirm your device is connected to your Mac using the command “adb devices”ADBDevices2
  3. To install the signed .apk, type the command “adb install”, followed by a space, then drag your signed .apk file into terminal and hit enter.ADBInstall2

If you were successful, you should now see your project’s icon on the device and you can launch it for testing!

When you are finished testing, you can uninstall the ad-hoc build the same way you would uninstall any other application from your device.