Prof. Snehal S. Shinde: Setting Up Your Android Development Environment
Prof. Snehal S. Shinde: Setting Up Your Android Development Environment
Shinde
Setting Up Your Android Development Environment
Configuring Your Development Environment Android applications can be developed on Windows, Macintosh, or Linux
systems.
To develop Android applications, you need to have the following software installed on your computer:
The Java Development Kit (JDK) Version 5 or 6, available for download at http://java.sun.com/javase/downloads/index.jsp. A compatible Java IDE such as Eclipse along with its JDT plug-in, available for download at http://www.eclipse.org/downloads/. The Android SDK, tools and documentation, available for download at
http://developer.android.com/sdk/index.html. The Android Development Tools (ADT) plug-in for Eclipse, available for download through the Eclipse software update mechanism. For instructions on how to install this plug-in, see http://developer.android.com/sdk/eclipse-adt.html.
To install and debug Android applications on Android devices, you need via to the configure USB your as operating system to access the phone cable shown in Fig. a).
For Windows installations, you need to install the appropriate USB driver.
Fig. a) Android Application debugging using the Emulator and an Android Handset
Your Android device must be enabled for debugging via a USB connection.
Enable your device to install Android applications by selecting Home, Menu, Settings, Applications and check (enable) the option called Unknown Sources.
Some important development settings are Home, Menu, Settings, Applications, Development Figure b). Here you should enable the following options: (see
USB Debugging: This setting enables you to debug your applications via the USB connection.
Stay Awake: This convenient setting keeps the phone from sleeping in the middle of your development work, as long as the device is plugged in. Allow Mock Locations: This setting enables you to send mock location information to the phone for development purposes and is very convenient for applications using location-based services (LBS).
C. Application Framework
D. Tools and
E. Sample Applications.
Before you can download the Android SDK, you must review and agree to the Android SDK License Agreement.
This agreement is a contract between you (the developer) and Google (copyright holder of the Android SDK).
1.
The Home Tab: It provides Developer announcements and important links to the latest hot topics in Android development.
2.
The SDK Tab: It provides Information about the different Android SDK versions available. Information about the Android Native Development Kit (NDK). Android SDK release notes
development sessions from the annual Google I/O conference, and developer sandbox interviews.
org.xml.sax.* org.xmlpull.*
It facilitate Android development across multiple platform versions simultaneously. The AVD profile describes what type of device you want the emulator to simulate, including which Android platform to support.
Android Emulator
This
tool
is
used
frequently
when
designing applications
and
developing
Android
The emulator runs on your computer and behaves much as a mobile device would.
You can load Android applications into the emulator, test, and debug them.
The emulator is a generic device and is not tied to any one specific phone configuration.
It is a command-line tool. This tool provides you with direct access to the devicewhether its the emulator virtual device or the physical device. DDMS is used to view and manage processes and threads running on the device, view heap data, attach to processes to debug, and a variety of other tasks.
relationships,
design and debug user interfaces. Developers can use this inspect the View develop pixel-perfect layouts. tool to and
properties
Other Tools
Draw Nine-patch Tool: It enables you to design stretchable PNG images, which is useful for supporting different screen sizes. Layoutopt Tool: It helps developers optimize their user interfaces for performance.
The Android SDK provides many samples and demo applications to help you learn the ropes of Android Development. Many of these demo applications are located in the /samples subdirectory of the Android SDK. Some of the demo applications are:
ApiDemos Snake NotePad LunarLander
Thank You