Android SDK for Offline Installation

Hi there. Long time not see you here :). This time I will talk about Android, a mobile operating system made by Google which is using modified Linux kernel. I knew this thing years ago, but I made Android apps just for fun, which only runnable in the emulator (Android gadget was not available yet at that time). Anyway, lately I get back my curiosity on Android development because of its good prospect (I think) and my brand new Android phone, hoho :). Hopefully in the following month I will publish some free Android apps for all of you :)


Let's get into the main point. If we want to develop Android-based application, at least we need to have:
  1. Android SDK and its components
  2. Eclipse
  3. ADT Plugin for Eclipse

Android Robot

We can download Android SDK at http://developer.android.com/sdk. Google provides Android SDK for 3 platforms: Windows, Mac OSX, and Linux. Just download it and extract the .zip or .tgz. After that, we can read the fine manual and start using AVD manager or "SDK Setup.exe" to perform online installation: download and install its components/packages, such as Android Platform, documentation, Google API, etc.

Anyway, if we want to perform offline installation, we need to download it components manually. Actually, Google doesn't provide any hard link for those, but we can use folder http://dl-ssl.google.com/android/repository/ and file http://dl-ssl.google.com/android/repository/repository.xml for reference. So, here it is a list of download link for some Android SDK components (for other version of API, check the xml file above).

After that, we just need to extract those components in the correct folders. See the following structure (for example, if you extract the SDK in the C:\android)
android/
|-- add-ons/
    |-- google_apis-8_r02/
        |-- docs/
        |-- images/
        |-- libs/
        |-- samples/
|-- docs/
|-- platforms/
    |-- android-2.2_r02-windows/
        |-- data/
        |-- images/
        |-- skins/
        |-- templates/
        |-- tools/
        |-- android.jar
|-- samples
|-- tools
|-- usb_driver
    |-- amd64
    |-- i386
|-- SDK Setup.exe
Next, download the ADT Plugin for Eclipse manually (for offline installation) from http://dl.google.com/android/ADT-0.9.7.zip (for version 0.9.7) and read the fine manual how to use it in Eclipse. In the end, take a look at HelloWorld application to see if your installation works perfectly. Happy coding! ;)

No comments :