

On Android 4.2.2 devices and later, a dialog Allow USB debugging? appears on the phone screen. Beware! Some cables are charge-only cables and will not work for development! Depending on your device manufacturer, it may appear as a USB disk. Plug your device into your computer using a data connection cable. Still on your device, from the application list screen, go to Settings | Developer options and enable Debugging and Stay awake. On Android 4.1 devices and earlier, Developer options should be visible by default. After some efforts, Developer options will magically appear in your application list screen. If your mobile device runs Android 4.2 or later, from the application list screen, go to Settings | About phone and tap several times on Build Number at the end of the list. If you are a Linux user, connecting your development device to your Distribution (at least on Ubuntu) should be enough to get it working too! If you use OS X, simply connecting your development device to your Mac should be enough to get it working! Your device should be recognized immediately without installing anything. Specific instructions are available for Google development phones, Nexus One, and Nexus S at.

Note that the Android SDK also contains some Windows drivers under $ANDROID_SDK\extras\google\usb_driver. If you have a driver CD with your Android device, you can use it. More information can be found at with a full list of device manufacturers. If you use Windows, installation of a development device is manufacturer-specific. However, the Android SDK manager does not manage the NDK, which explains why we downloaded it separately, and why you will need to update it manually in the future. Both the SDK and NDK are made available through the command line, thanks to a few environment variables. On the other hand, the Android NDK has been deployed manually from its archive. An alternative solution consists of manually deploying the SDK standalone package provided by Google. The Android SDK has been set up through the Android Studio package. It is, however, absolutely possible to use Android Studio for Java development, and the command line or Eclipse for C/C++. Although it is now the official Android IDE, we are not going to use it much throughout the book because of its lack of support of the NDK. However, the Android SDK Manager does not manage the NDK, which explains why we downloaded it separately, and why you will need to update it manually in the future.Īndroid Studio is now installed on the system. There is no need to reinstall or overwrite anything! This tool greatly simplifies the update of your environment when new SDK API and components are released. To get a fully functional environment, all Android packages have been downloaded thanks to the Android SDK manager, which aims at managing all the platforms, sources, samples, and emulation features available through the SDK. Both the SDK and NDK are made available through the command line thanks to a few environment variables. It is, however, absolutely possible to use Android Studio for Java development, and command line or Eclipse for C/C++. Android Studio is now installed on the system.
