Google Project Tango

From ETC Public Wiki
Jump to: navigation, search

Getting Started

  1. Go to https://developers.google.com/project-tango/apis/unity/
  2. Download Android SDK, Google USB Driver, and Project Tango Unity SDK. Be sure so carefully read the instruction on each page.
  3. Enable USB debugging on the device.
  4. Follow the steps in this tutorial to create a project.

(Note: The first time you build the project, you will be asked to locate the Android SDK root folder, which is usually at C:\Users\username\AppData\Local\Android\android-sdk)

Installing Android SDK

  1. Go to [[ http://developer.android.com/sdk/installing/index.html?pkg=tools]] to download and install the standalone Android SDK for windows
  2. Open the SDK Manager and install these essential packages: Android SDK Tools, Android SDK Platform-tools, Android SDK Build-tools, a version of Android platform API
  3. If you are developing on Windows, you may want to change the System Environment Variables to make build process easier:
    1. Have your android sdk platform tool location ready, for example, ...\Android\android-sdk\platform-tools
    2. Go to Computer -> System Properties (Or right click -> Properties) -> Advanced System Settings -> Advanced -> Environment Variables
    3. In System variables, go to the Path variable, double click the Value, and add the platform tool location to the end
  4. Now you can test if you can access the adb command by
    1. WIN+R -> cmd -> Enter ***OR*** Start -> Accessories -> Command and Prompt
    2. Type adb
    3. If you can see Android Debug Bridge messages, you are good to go!

Building Unity Project

  1. Make sure it’s built on platform Android, and the phone’s orientation is Landscape Left
  2. When building, it will prompt and ask you for the location of Android SDK: ...\Android\android-sdk
  3. Connect the device, and in command line, run adb install YOUR -.APK FILE
  4. If installation succeeds, the return value is Success. Otherwise. Failure [INSTALL_FAILED_ALREADY_EXISTS], you need use -r parameter to reinstall installed package. If return Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE], please check your android devices ROM or SD Card space

Useful links

  1. Getting Started with Unity for Project Tango
  2. Installing the Stand-alone SDK Tools
  3. Google USB Driver
  4. Unity Tutorial: Motion Tracking with Unity
  5. Project Tango UnitySDK Examples