The Android SDK is composed of a debugger, Android libraries, a device emulator, documentation, sample code, and tutorials. You can't develop Android apps without the Android SDK.
To download the Android SDK, follow these steps:
I recommend extracting /Library/android on Mac OS X because I reference this location later in this chapter.
You've just downloaded the Android SDK.
The Android SDK and AVD Manager dialog box opens.
For the purposes of this book, select version 3.0, as shown in Figure 4-3. At this writing, 3.0 is the latest and greatest version of Android. Check the boxes for the documentation and samples that correspond with Android version 3.0 (API 11).
Every time a new version of the Android OS is released, Google also releases an SDK that contains access to the added functionality in that version. If you want to include Bluetooth functionality in your app, for example, make sure that you have selected Android SDK version 2.0 or later, because this functionality isn't available in earlier versions.
The Choose Packages to Install dialog box opens. (See Figure 4-4.)
The Installing Archives dialog box opens, displaying a progress bar.
While the Android SDK is attempting to connect to the servers to obtain the files, you may occasionally receive a Failure to fetch URL error. If this happens to you, navigate to Settings, select Force https://… Sources to be Fetched Using http://, and then attempt to download the available packages again.
Adding the Android NDK
The Android Native Development Kit (NDK) is a set of tools that allows you to embed components that use native code — code that you've written in a native language such as C or C++.
If you decide to take on the NDK, you still have to download the SDK. The NDK isn't a replacement for the SDK; it's an added functionality set that complements the SDK. You can learn more about the NDK here: http://d.android.com/sdk/ndk/.
3.137.184.29