Pages

Thursday, November 21, 2013

Android dev setup


  1. Install Eclipse IDE for Java developer
    http://www.eclipse.org/downloads/
  2. Install Android SDK starter Package
    Windows installer version
    http://developer.android.com/sdk/index.html
    download for Existing IDE
    http://dl.google.com/android/installer_r22.3-windows.exe

    Install it in c:\AndroidSDK
  3. ADT for eclipse

    add repository

    ADT - https://dl-ssl.google.com/android/eclipse/

    to eclipse then install Development tools & NDK Plugins



    from Android SDK manager, Install tools and platforms that you wish to install

    ----------------------------

    To Run first Project via devise


    1-Enable debugging the device to run the app

    Settings -> Developer Options then select USB Debugging (Android 4+)Enable debugging the device to run the app

    2-Install Samsung Kies for Samsung devices
    3-ADB (Android Debug Bridge)
    If running the app in real device, sometimes Eclipse cannot find the device. Then ADB needs to be restarted.
    Useful ADB commands (to be run from Command Prompt)
    Stop ADB Server: adb kill-server
    Start ADB Server: adb start-server
    See all the devices attached through USB: adb devices