Tuesday, January 31, 2012

How to Program Apps for the Android


Android is growing continually in terms of devices and applications. If you want to program apps for the Android platform, you have to carry out a series of distinct steps. Initially, you need to create a development environment on your computer with all of the tools you need to get started. Setting up your environment is not typically difficult. Android application development is challenging, but anyone can learn it. As with any programming task, it's best to learn the key skills involved one at a time and build on your knowledge incrementall.

Instructions

1 Download the Eclipse Integrated Development Environment. All of the official Android development tools and resources are aimed at developing in Eclipse, so this is the ideal environment to use. Visit the Eclipse Foundation website, download and install the application. You will also need the Java Development Kit. If you do not already have it, visit the Java section on the Oracle website and download the latest JDK, following the installation instructions on the site.

2 Download the Android Software Development Kit. This resource contains the tools for developing Android apps. Visit the Android SDK download page on the official Android Developers Guide website and select the correct version for your operating system, then download and install it. In Eclipse, install the Android Developer Tools plugin by choosing "Select," "Install New Software" then entering the following location in the "Add Repository" dialog:

https://dl-ssl.google.com/android/eclipse/
Enter "ADT Plugin" as the name and click "OK" to install the tool

3 Create a new project for each Android app you want to develop. Each time you create an Android project, you need to enter details of its application and package name, as well as which versions of the SDK you wish to target. You can create user interface designs for your app user interfaces using the XML layout files within your projects. Create an Activity for each screen within your application, implementing your program logic in Java code.

4 Enter the application version details for your Android projects in their Manifest files. Here you can add an incremental version number and name each time you upgrade an app. You can test and run your Android apps on your own Android devices while you are developing them. Within Eclipse, you can also use the Android Virtual Device Manager to run your apps on devices with hardware and software specifications of your choice.

5 Sign your applications for release. To publish your apps on the Android Market, you need to sign them with a cryptographic key. You can use the Keytool utility to do this within Eclipse, using the ADT Export Wizard. To release your apps through the Market you also need to sign up for a Developer Account, so visit the Android Market website and register an account. Once logged in, you can upload new and upgraded apps through your Developer Console.

Tips & Warnings

Make use of the official resources on the Android Developers Guide. This contains lots of tips, guidelines and code samples.

Lots of technologies are involved in Android development, including Java, XML and optionally SQL. Developing Android apps therefore requires a considerable commitment.


No comments:

Post a Comment