How to Develop Android Applications – Android Development Tutorial

SEnukeTNG Rank #1 in Google, Download Now!
android development tutorial

android development tutorial

Development Tutorial

Contents:

1 How do you start programming in Android ?
2 Creating an Android project
3 Run your application
4 Applications Android open source

How to start programming in Android ?
To begin programming in Android is important to have knowledge of Java and Object Oriented Programming . If you do not know but you know Java program to recognize Java as a simple and easy language to learn .

Java also uses XML for the visual part , other descriptive language very easy to use and brings simplicity to the programming on Android.

It can be set to any Windows , MAC or Linux platform. To do this, download the Android SDK , which consists of all Java libraries that use Android, the emulator to test applications that perform and many applications that are already developed by Google and will surely implement mobile phones that go with Android .

Creating an Android project
After installing the ADT plugin , described in Download the Android SDK , we can create a new Android project or through an existing code . To create a new project:

New > Project.”>- Choose File > New > Project .
Android Project y click en Next.”>- Select Android > Android Project and click Next.
– Select the contents for the project:

Enter Project Name. This will be the name of the folder where your project will be created .
In Contents , select Create new project in workspace , then sailing the workspace ( folder where all your apps are ) project.
At Target, select an Android target to be used in your project. The Build Target specifies which platforms you want your application to use.
Note: You can change the Build Target for your project at anytime : With right click on the project in the Package Explorer , select Properties, then choose Android and then you want the Target Project .
In Properties , fill in all required fields :

– Enter Application name . This is a human -readable title for your application to – is the name that will appear on your Android device.
– Enter name.Este Package is the package name (or namespace ) where will all the source code.
– Choose Create Activity and enter a name for your main Activity class ( main) .
– Enter Min SDK Version . This is an integer indicating the minimum API level ( Level API ) that requires your application to run properly. Go to archive Manifiesto.”>Submitting this automatically updates the minSdkVersion attribute in the element <uses-sdk> your Manifest file.
–  Click Finish.

Once you completed the steps to create a project, the ADT creates the following folders and files in your new project:

src /
Includes all Java files in your application, such as Activities, Services, etc. .

/ (e.g., Android 1.1/)”><Android Version> / (e.g. , Android 1.1 / )
Includes android.jar file. This is determined by the build target ( platform) that you selected in the previous steps .

gene /
This contains the Java files generated by ADT , as the R.java and interfaces created from AIDL files.

assets /
This is empty . You can use it to store raw asset files .

res /
A folder for your application resources ( resources ), such as drawing files , display files (layout ) , string values, etc. .

AndroidManifest.xml
The Manifesto of Android (Android Manifest) for your project.

default.properties

This file contains project settings , such as the build target ( your platform ) .

Note: Any questions join the forum and consultation.
Running your application
Note: Before you can run your application on the Android Emulator , you must create an Android Virtual Device ( AVD )
explained in Download the Android SDK.

Run (or Run > Debug) desde el menu principal del Eclipse.”>To run (or do debugging on ) your application, select Run> Run ( or Run> Debug) from the main menu of Eclipse.
The ADT plugin automatically create a link (launch ) by default for the project.

When you have already chosen whether to run or debug your application, Eclipse will:

1. Compile the project (if there is any change ) .
2. Create a binding configuration by default ( if this does not yet exist for the project ) .
3. Install and start the application on an emulator or device.
If your chosen debug , the application will start in Debug mode , showing “Waiting For Debugger ” dialog
Once the debugger is initiated the Eclipse Debug perspective opens .

Note: Any questions join the forum and consultation.
Android Applications with Open Source
The best way to start as Android developer is looking to open source applications or examples.
Here are several online sites where you can see:
No.1 : Android SDK Samples: The best way to learn how things are done is some examples of code
Via : http://developer.android.com/resources/samples/index.html

For Android developers get started faster , Android SDK includes a variety of example code and tutorials that illustrate key concepts and techniques in developing Android applications. The following list provides a summary of the applications that are available with the Android SDK:

1. API Demos
A variety of small applications where the performance of various components of the framework is shown .

2. Bluetooth Chat
To send text messages bidirectionally via Bluetooth.

3. BusinessCard
It shows how to bind an activity chosen from a contact. This example also uses reflection to ensure they are using the correct version of the API of contacts depending on which API level the application is running .

4. Contact Manager
Shows how to contact the producer of the system using the API ContactsContract contacts , as well as insert contacts into a specified account.

5. Home
An application to replace the main screen.

6. Jetboy
A game that shows technology SONiVOX JET interactive music with JetPlayer .

7. Live Wallpaper
Shows how to create a wallpaper and incorporate it into an application so that users can then install it on their devices.

8. Lunar Lander
The classic game Lunar Lander .

9. Multiple Resolutions
Shows how to use the res directory to provide different sources for this according to the settings screen .

10.Note Pad
An application that saves notes . Similar to Notepad .

11. SampxleSyncAdapter
It shows how an application can communicate with a cloud-based service and synchronize your data with data stored locally on a content provider . The example uses two related parts of the Android framework – the account manager and the synchronization manager ( through a sync adapter).

12. Searchable Dictionary
Displays the Android search framework , including how to provide search suggestions for Quick Search Box .

13 . Snake
An implementation of the classic game “Snake . ”

14 . Soft Keyboard
A writing sample with an onscreen keyboard .

15 . Wiktionary
An example of creating interactive widgets to display on the main screen of Android.

16 . Wiktionary (Simplified )
A simple example of widgets for your Android home screen .
No.2 : Apps for Android: Example Applications for the Android platform
Via : http://code.google.com/p/apps-for-android/

A collection of useful open source application that demonstrates the features of the Android platform :

1. Amazed : A very active game balls to guide that uses the accelerometer.
2. AndroidGlobalTime : A complete representation of the earth that can be rotated to taste.
3. Anycut : A utility that allows you to create shortcuts on the main screen of virtually anything .
4. Clickin2DaBeat : A game that combines rhythmic YouTube or logic games.
5. DivideAndConquer : A game that should be isolated cellphone balls creating walls around.
6. LOLcat Builder :
7. Panoramio: An application showing points of interest and photos of nearby locations.
8. Photostream : An application that allows you to view games online photo services such as Flickr.
9. Radar: A view of a radar location relative to the style used by Panoramio and others.
10. RingsExtended : An application that allows improved control over ringtones.
11. Samples: several examples showing the features of Android ( including OpenGL ES) platform.
12. SpriteMethodTest : An application that compares the speed of several methods for 2D drawing.
13 . Translate: Translates more than 150 languages ​​with the Google translation service .
14 . WebViewDemo : It shows how Java and JavaScript can call each other in a web view .
15 . WikiNotes : A notebook based on wiki that uses intents to browse the contents of the notes.
No.3 : Tomdroid : Implementation of Tomboy on Android
Via : https://launchpad.net/tomdroid

An attempt to produce a Tomboy client for Google Android platform :

For those who did not know it Tomboy is the best app for taking notes using a wiki interface friendly style. The objective is Tomdroid bring the same benefits to the Android platform as well keep the file format compatibility and the ability to sync notes with Tomboy . Of course, another challenge for the project is also to make this cute user interface is well suited to mobile screen .
No.4 : Shelves : Shelves is an application for Android librarianship administration staff .
Via : http://code.google.com/p/shelves/

Shelves easily manage a book collection from your phone. With Shelves , you can add a book by scanning their barcodes , using Web searches or entering information manually. Shelves help you find books in your collection through several searches including scanning the barcode of a book.
No.5 : Android Projects on Google Code
Via : http://code.google.com/hosting/search?q=android&projectsearch=Search+projects

If you want Android Projects on Google Code , you will find a number of open source android apps where you can choose the one you like .

Click Here to Download Android Developer Kit SDK

Be the first to comment

Leave a Reply