Abstract

Download the Yotaphone SDK
Last Updated: April 23, 2014

The article contains YotaPhone SDK installation guide for Windows, Linux and Mac operatingsystems and is intended for third–party developers of YotaPhone applications.YotaPhone SDK supports all gestures for 3-rd party application (swipe left, swipe right, etc.) and both screens– FrontScreen (FS), BackScreen(BS).

Getting Started

NOTE: IF YOU HAVE PROBLEMS IN STARTING EMULATOR, PLEASE, UPDATE/COPY THE FOLLOWING FILE source.properties TO THE FOLDER: android_sdk\add-ons\addon-yotaphone

Download and setup Android SDK. All necessary information you can get here.

All information about Android Emulator you can get here.

With a single download, the YotaPhone SDK includes everything you need to begin developing apps:

  • The latest SDK jar file for developing apps
  • The latest system image for the YotaPhone emulator
  • Api reference guide
YotaPhone Emulator for Windows Installation Guide
  1. Extract archive to your <sdk>/add-ons/ folder.
  2. Input the path to addon-yotaphone tools folder to make environment variable. Just click on the Computer icon on your Desktop -> Properties -> Advanced systemsettings -> Advanced -> Environment Variables… In the Edit User Variable dialog pop up add <sdk>/add-ons/addon-yotaphone/tools_win to the Variable value Path and click OK button.

    Image

  3. Copy emulator files form <sdk>/add-ons/addon-yotaphone/tools_win to <sdk>\tools.

  4. Launch Android SDK manager and download all files for Android 4.2.2 (API 17)

    Image

  5. Launch AVD manager and Create new AVD based on addon-yotaphone, with thisconfiguration:

    • AVD Name: any acceptable. (i.e. <avd_name>)
    • Device: any acceptable
    • Target: choose Platinum Add-On (Yota Platinum)
    • CPU/ABI: both ARM or x86 acceptable (To improve work of the emulator we recommend to install Intel Hardware Acceleration Execution Manager. All necessary information you can get here.)
    • Other AVD settings are up to user

    Below is example of created AVD based on Platinum add-on:

    Image

  6. Start the emulator.

    Image

    • To improve work of the emulator we recommend to install Intel Hardware Acceleration Execution Manager. All necessary information you can get here.

Note: If you develop for real device, you should install YotaPhone Device Driver and copy adb_usb.ini file to C:\Users\.android\ folder and restart adb server. Or you should run the following commands:

    echo "0x2916"  >> "%USERPROFILE%\.android\adb_usb.ini"
    adb kill-server
    adb start-server
YotaPhone SDK for Linux Installation Guide
  1. Set the ANDROID_SDK_ROOT environment variable (<sdk> - is the path of installedAndroid SDK):

    export ANDROID_SDK_ROOT=<sdk>;
    
  2. Extract archive addon-yotaphone.zip to <sdk>/add-ons/addon-yotaphone

  3. Launch android SDK manager

    cd <sdk>/tools/
    ./android
    

    Download all files for Android 4.2.2 (API 17)

    Image

  4. Launch AVD manager

    ./android avd
    

    Create a new AVD based on addon-platinum, with the following configuration:

    • AVD Name: any acceptable. (i.e. <avd_name>)
    • Device: any acceptable
    • Target: choose Platinum Add-On (Yota Platinum)
    • CPU/ABI: both ARM or x86 acceptable (To improve work of the emulator we recommend to install Intel Hardware Acceleration Execution Manager. All necessary information you can get here.)
    • Other AVD settings are up to user

    Below is example of the created AVD based on Platinum add-on:

    Image

  5. Copy and replace all files from \addon-yotaphone\tools_lin to tools folder of downloaded SDK.
    !!! Important !!! You need to change permission for theese files to executable

    chmod +x <sdk>/tools/emulator*
    
  6. Launch emulator:

    <sdk>/tools/emulator -avd platinum
    

    Image

    • To improve work of the emulator we recommend to install Intel Hardware Acceleration Execution Manager. All necessary information you can get here.

Note: If you develop for real device, you should copy adb_usb.ini file to ~.android\ folder and restart adb server. Or you should run the following commands:

    echo 0x2916 >> ~/.android/adb_usb.ini
    adb kill-server
    adb start-server
YotaPhone SDK for Mac Installation Guide
  1. Download SDK for Mac OS (http://developer.android.com/sdk/index.html)
  2. Launch Eclipse from adt-bundle-mac-x86_64/eclipse
  3. Set SDK path in Eclipse: ADT - Settings - Android - SDK location
  4. Open SDK Manager (Eclipse - Window - Android SDK Manager)
  5. Select Tools, Android 4.2.2 (API 17) and last item in Extras - Emulator Accelerator(HAXM) (What is it and why this need you can read here: http://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x)

    Image

  6. Copy addon-yotaphone to folder android-sdk-macosx

  7. Copy and replace all files from \addon-yotaphone\tools_mac to tools folder of downloaded SDK.
    !!! Important !!! You need to change permission for theese files to executable

    chmod +x <sdk>/tools/emulator*
    
  8. Open AVD Manager (Eclipse - Window - Android SDK Manager)

  9. Create new avd device with the following parameters:

    • AVD Name: any acceptable. (i.e. <avd_name>)
    • Device: any acceptable
    • Target: choose Platinum Add-On (Yota Platinum)
    • CPU/ABI: both ARM or x86 acceptable*
    • Other AVD settings are up to user

    Image

  10. Press OK and Start it

    Image

Note: If you develop for real device, you should copy adb_usb.ini file to ~.android\ folder and restart adb server. Or you should run the following commands:

    echo 0x2916 >> ~/.android/adb_usb.ini
    adb kill-server
    adb start-server