Thursday, July 24, 2014

How to Program Apps for the Android



1. Download and install the Eclipse Integrated Development Environment from the Eclipse Foundation website (see link in Resources). All of the official Android development tools and resources are aimed at developing in Eclipse, so this is the ideal environment to use.

2. Download and install the latest Java Development Kit from the Java section on the Oracle website (see link in Resources), following the installation instructions on the site.

3. Download and install the Android Software Development Kit into the Eclipse IDE. This resource contains the tools for developing Android apps. Visit the Android SDK download page on the official Android Developers Guide website (see link in Resources) and select the correct version for your operating system. In Eclipse, install the Android Developer Tools plugin by choosing 'Select' and 'Install New Software,' then entering the following location in the Add Repository dialog box:https://dl-ssl.google.com/android/eclipse/Enter 'ADT Plugin' as the name and click 'OK' to install the tool.

4. 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.

5. 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.

6. 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.

7. Sign up for a Developer Account (see Resources) to be allowed to release your apps through the Android Market. Log in and upload new and upgraded apps through your Developer Console.

No comments:

Post a Comment