android development tutorial

How to Develop Android Applications – 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


dowload android devoper kit

Download the Android Developer Kit SDK

dowload android devoper kit

Download the Android SDK
If you’re new to Android SDK , read Start , which is a summary of how to install and configure the SDK.

If you’re already using the Android SDK and want to update , use the ” Android SDK and AVD Manager” to download the new versions , this after having downloaded the new SDK package .

Platform

Package Size

MD5

Checksum

Linux (i386) 

android-sdk_r06-linux_86.tgz

16971139 bytes

848371e4bf068dbb582b709f4e56d903

Mac OS X (intel) 

android-sdk_r06-mac_86.zip

19108077 bytes

c92abf66a82c7a3f2b8493ebe025dd22

Windows 

android-sdk_r06-windows.zip

23293160 bytes

7c7fcec3c6b5c7c3df6ae654b27effb5

Showing 3 items from the Downloads page sorted by Platform SDK . Learn more »

Beginning
Here are the steps to start with Android SDK:

1. Prepare your development environment

Read the paper on the System Requirements and make sure your computer meets the hardware and software requirements for the Android SDK. Install any additional software before downloading the Android SDK. In particular , you need the JDK (Java Development Kit, required version 5 or 6) and Eclipse ( version 3.4 or 3.5, only necessary if you use the ADT Plugin ) .

2. Download and install the SDK package

Select a package from the table above and download it to your development environment (it is advisable to create an easily accessible folder , for example C: java ) . To install simply unzip the file to your folder and then add the tools / location in your PATH.

3. Installing the Eclipse Plugin ADTpara

Assuming you have a compatible version of Eclipse installed , as stated in Prepare your development environment, follow these steps to download the ADT plugin and install it in your Eclipse.

Eclipse 3.4 ( Ganymede )

1. Software Updates….”>Start the Eclipse , then select Help > Software Updates …. In the dialog that appears , click on Available Software.

2. Click Add Site …

3. In the Add Site dialog , enter this URL in the “Location” field : https://dl-ssl.google.com/android/eclipse/

Note: If you have trouble acquiring the plugin , try using “http ” in the URL , instead of “https” ( https is preferred for security reasons ) .

Click on OK .

4. Software Available again , there you should see the plugin followed by your URL with the name of ” Developer Tools” . select the checkboxes that are next to Developer Tools and click Install …

5. In the installation window , both the “Android DDMS ” as ” Android Development Tools” should appear selected (accents on the checkboxes ) . Click on Next.

6. Read and accept the licensing standards and then click Finish.

7. Restart Eclipse.

Eclipse 3.5 (Galileo )

1. Install New Software.”>Start the Eclipse , then select Help > Install New Software.

2. In the Available Software dialog , click Add ….

3. In the Add Site dialog , enter the ” Name” a name for the remote site ( for example, “Android Plugin ” ) field .

In the “Location” field, enter this URL: https://dl-ssl.google.com/android/eclipse/

Note: If you have trouble acquiring the plugin , try using “http ” in the URL , instead of “https” ( https is preferred for security reasons ) .

Click on OK .

4. Back to Available Software should see ” Developer Tools” added to the list . Select the checkbox that follows Developer Tools , which will automatically select the necessary tools Android DDMS and Android Development Tools. Click on Next.

5. In the Install Details dialog , set the features of Android DDMS and Android Development Tools. Click Next to read and accept the licensing standards and install dependencies , then click Finish

6. Restart the Eclipse.

Configuring the ADT Plugin

Once you’ve downloaded the ADT smoothly, the next step is to modify your ADT preferences in Eclipse pointing to the Android SDK directory :

Preferences…”>Select Window > Preferences … Preferences).”>to open the Preferences panel ( Mac OS X : Eclipse > Preferences) .
Select Android from the left panel
For SDK Location in the main panel, click Browse … and select your SDK directory and downloaded .
Click Apply, then OK .

4. Add Android platforms and other components to your SDK

I use the Android SDK and AVD Manager ( Android SDK and AVD Manager ) , included in the SDK package , to add one or more Android platforms (eg Android 1.6 and Android 2.0 ) and other components to your SDK.

To install the Android SDK and AVD Manager in Windows (outside of Eclipse ) , run SDK Setup.exe in the root directory of the SDK. /tools/.”>In Mac OS X or Linux , execute the android tool in <sdk> / tools / folder.

Steps to add platforms and other components:

Android SDK and AVD Manager, en la ventana ir a Availables Packages (panel izquierdo) luego Add Site…”>Select Windows > Android SDK and AVD Manager, go to the Packages window Availables ( left panel) then Add Site … and enter http://dl-ssl.google.com/android/eclipse/ . Select necessary and / or package files , you can choose all or just the version with which you will work (eg 2.1) , then click Install Selected.

Once the installation is complete look at Installed Packages, there should appear in the list / newly installed packages.

Note: if you want to update and download the latest versions , go to Availables Packages, tick in the url of the repository and display updates only, there shows everything available to update , follow the same steps above .

5. Creating an Android Virtual Device ( AVD )

Finally , we must create our virtual devices (Virtual Devices) , select Virtual Devices ( left panel) and click New button Once you open the Create New AVD window, enter a name (eg 2.1) then select the Target, this is platform you ‘re using (eg Android 2.1, API Level 7) , then click Create AVD.

! You have your AVD ready to run your next application.

Note: Do not forget before running an application and verify that there is an ADL that supports the platform.
Ready !

If you’re new to Android, you can use the Hello World tutorial to start.

Platform

Package Size

MD5

Checksum

Linux (i386) 

android-sdk_r06-linux_86.tgz

16971139 bytes

848371e4bf068dbb582b709f4e56d903

Mac OS X (intel) 

android-sdk_r06-mac_86.zip

19108077 bytes

c92abf66a82c7a3f2b8493ebe025dd22

Windows 

android-sdk_r06-windows.zip

23293160 bytes

7c7fcec3c6b5c7c3df6ae654b27effb5


Google Translate App Download

Translate in The Go Google Translator App update of offline mode for Android

Google Translate App Download Click Here to Download The Google Translate App Free from Android App Market Place, Google Play Store

Within the outdated days, travelers carry a paperback phrasebook in their  pocket annoying pulling it randomly to order dinner or take the bus or joking with people. The arrival of smartphone and tablets PCs have almost eradicated these books, and now Google has put the final nail in the coffin for some customers, the introduction of an offline mode for making use of Google Translate Application.
The Google Translate app for Android works in the same way of Google Translate web utility, which provides access to 60 languages ​​together with Japanese, Spanish, Chinese language, Filipino, Thai, welsh, Czech, language and virtually each different manner you come in contact throughout your  travels. Better but, unlike the paperback phrasebook or dictionary, mentioned, you’ll be able to say a phrase in the utility, and in turn hear spoken pronunciation then the voice command app will transfer it to words, then  the Google translate app, translated again into the desired words in no time, along the run.
Beginning right now, a brand new function is out there for Android Smartphone, and can be downloaded from Google Play Store ( Android App Store), users and customers: Offline Mode, which, as you could have already guessed, permits customers to use Google Translate with out Wi-Fi or mobile data. That is achieved by , Google translate App, utilizing language packs offline, of which there are presently 50+ Language Packs, which contains the commonest and some more languages, including French, Spanish and Chinese. Also you can translate from many rare languages, like Siamese, Hausa, Alaurbayh, Khmer, etc.to English or any Common used Language Like Arabic, French, Spanish, Portuguese or many others
Language packs should be downloaded before they can be utilized offline, which is achieved by selecting “offline languages” from the Google Translate App  menu and tap the pin icon next to the languages ​​you want. The role of offline mode is out there to customers running Android Operating system 2.3  and higher. You can go to Google Play Market Place or Samsung Store or any any Android Apps Market Place Download and Install the Google Translate App right  now. Then Enjoy Translating in the Go!

Click Here to Download The Google Translate App Free from Android App Market Place, Google Play Store


adobe flash player android

Download and Install Flash Player for Galaxy With Android

adobe flash player android

Download and Install flash player for galaxy Grand:
Samsung Galaxy Grand works with Android Jelly Bean, so no official flash player available for it on Google Play.  Adobe stopped supporting the platform. Now you can manually install an archived version of Flash Player for Android, but is likely to experience problems of stability and security.

We can not be responsible for problems caused by installing Flash Player on your gorgeous Galaxy device . Unknown threats, but still going to install this outside of Google Play.

How to Download and  install Flash Player for Samsung Galaxy Grand?

– First you have to download the installation file. This is an archived apk that Adobe released for Android operating system. You can download it, go to the Adobe download page and then scroll down until you see Flash Player for Android files. Download the latest there. Viewing photo 1.
– Now place the downloaded file to the phone’s SD card file.
– In The Galaxy Grand, go to Settings> Security and check the “Unknown sources” box. You have to do this to install any files outside of Google Play.
– Now access downloaded file from the SD card and run it. You are prompted to click install. See photo 2.
After waiting until the installation is done and you’re done.
To use Adobe Flash Player you will need to use a browser that supports it, like Dolphin Browser.

That’s it, you now have Flash Player installed on your Samsung Galaxy Grand.

Download Flash Player for Samsung Galaxy Note GT-N5110 8.0?

Flash Player is not officially supported for devices using the Android Jelly Bean OS. However, Adobe continues archives to Flash Player 11 for Ice Cream Sandwich. This version still can be installed on devices that have the jelly bean, but not by the official method of Google Play, but simply installing the apk file manually.

NOTE: You will need to check ‘Unknown’ Settings> Security you can install the apk out of Google Play.

How to Install Flash Player in Galaxy Note:

First you have to download Flash Player  from the Adobe download page .
Then you have to put the apk in the memory of your Tablet.
Now just use a file manager to access the installer and run it.

You can use Flash Player with Android browser or install other browsers that support Flash, such as dolphins.


Android Tutorial: Adding a button and code in Android application with Eclipse

Here We are going to show you in this tutorial how to add a button to a layout of an Android  application in Eclipse IDE . We explain how to add code to the event “click” (when the user clicks the button with your finger on mobile Android ) as an example add the necessary to open the default browser and navigate to a code URL concrete.

Requirements to develop application for Android devices Eclipse:

The following link will show a tutorial where we explain step by step how to install Eclipse and how to develop an application for devices with Android :

My first Android application with Eclipse in Linux, Ubuntu install Eclipse .

Add a button to a layout and add code in the onClick event
Add a button from Layout or Graphical XML file manually from

Then explain how to add a (Button) button to a app Android in Eclipse , first we will have created the layout of our application (main window). In this layout that can be opened from “res” -. “Layout”, we double click on “activity_ajpdsoft_linterna.xml” (can be any other name) Eclipse graphical editing will show the layout with the possible components to add, in the group “Form Widgets” from the “Palette” window select “Button”:

 

Add a button to a layout and add code in the onClick event

And drag to place the layout where you want it to appear:

Add a button to a layout and add code in the onClick event

Selecting the New button, Eclipse will show on the right side of the “Properties” window indicate where the two most important properties:

Id: Button that identifies the name to reference it in Java code, for example “@ + id / btURL” (always indicate “@ + id / nombre_identificativo”

Add a button to a layout and add code in the onClick event

  • The other important property for the Button will be the text to be displayed to the user, we have two possibilities:

–   We can write directly on the “Text” property (not recommended).
–  Before assigning a text to create a Button “Value” in “Resources”. To do so, follow these steps, we will  open the following folders in “Project Explorer”, “res” – “values”, we double click on “strings.xml”. Eclipse on the right side will show the current values, you press “Add”:

Add a button to a layout and add code in the onClick event

–  Select “String” and press “OK”:

Add a button to a layout and add code in the onClick event

– Introduce an identifying name for the new String “Name”, for example “text_url” and a value in “Value”, eg “Visit website”. Close the file “strings.xml” and store the changes:

Add a button to a layout and add code in the onClick event

In fact all we’ve done is add the following line to the file “strings.xml”

<string name=”text_url”> Visit site </ string>

Once you add the string back to the layout, select the Button and the “Text” property will press the “…” button:

Add a button to a layout and add code in the onClick event

 

In the selection window resource (Resource Chooser) select the previously added string “text_url”

Add a button to a layout and add code in the onClick event

Thus from “Graphical layout” and we added to the main application window button Android :  Thus from “Graphical layout” and we added to the main application window button Android :

Add a button to a layout and add code in the onClick event

Like almost everything in Eclipse , we can see and modify and even add any component directly editing the layout for the file by clicking on the bottom of the file opened in xxx.xml layout, see the code XML necessary to add any component of our application , framed in red the code XML to the graphic designer added automatically to our button.

Add a button to a layout and add code in the onClick event

The code XML to add a button in Eclipse applications Android :

<Button
android: id = “@ + id / btURL”
android: layout_width = “wrap_content”
android: layout_height = “wrap_content”
android: layout_below = “@ + id / btAjpdSoft”
android: layout_centerHorizontal = “true”
android: layout_marginTop = “22DP”
android: text = “@ string / text_url” />

Assign code onClick event of a button in Eclipse for Android applications

We will open the file xxx.java our application to be in the “Project Explorer” in the “src” folder, in our case “AjpdSoftLinterna.java”. To work with a Button we have an import to the top of the program:

android.widget.Button import;

In the application class add the following line:

private Button btURL;

(Where “btURL” is the name we have assigned to the button to create the layout, the “Id” property).

Assign code onClick event of a button in Eclipse for Android applications

Finally add in “public void onCreate …” the following lines of Java code to create the OnClick event, which will be the code that runs when the user clicks the button:

btURL = (Button) findViewById (R.id.btURL);
btURL.setOnClickListener (new OnClickListener ()
{

@ Override
public void onClick (View v)
{
Intent browserIntent =
new Intent (Intent.ACTION_VIEW,
Uri.parse (“http://www.ajpdsoft.com”));
startActivity (browserIntent);
}
});

The above code will allow when the user clicks the button the default browser will open and navigate to the URL specified. To make the above code should be added two imports at the beginning:

android.net.Uri import;
android.content.Intent import;

Now test the application in the emulator, for that press in “Run” – “Run”:

Assign code onClick event of a button in Eclipse for Android applications

If successful the application will run in the emulator, showing our new button “Visit website”:

Assign code onClick event of a button in Eclipse for Android applications

If the user of our application Android developed with Eclipse press the button opens the default browser of our device Android and visit the URL ” www.ajpdsoft.com ”

Assign code onClick event of a button in Eclipse for Android applications

Source: http://www.ajpdsoft.com/

 

 


dowload free appmgr II android app from market place

Download Free AppMgr II from Android Market

Download Free AppMgr II  from Android Market dowload free android app from market place

Click Here to Download Free AppMgr II from fro Android Market Place

Download Free AppMgr II to Move apps to the card and saves space on your android smartphone or device.
App 2 SD helps you to get more space on mobile very easily and freely.

App 2 SD detects which applications installed on the phone memory can be moved to the memory card. Select them, move them and voila, all without leaving the program.

In addition to moving applications, you can see the rest of your applications, and the space they occupy, if you want to completely uninstall.

Among its options, App 2 SD also allows quickly clear the cache or see notifications when you install new applications.

Note AppMgr II

Click the Download button to access Android Market and download the app on your Android

Pros

Helps free up memory
Simple to use
Allows you to clear the application cache

Cons

Some functions are unintuitive
Only for phones with low internal memory

dowload free android app from market place

Click Here to Download Free AppMgr II from fro Android Market Place