Sunday, December 9, 2012

Path to Creating Applications for Android

By Mary Tullie


Google made available the Android operating system so that just about anyone together with the proper skills can build apps to run on an Android phone or tablet. Google's approach to building smartphones is basically opposite to Apple Inc, preferring control over the applications that people can use on their iPhones. The open design of Android means that you can literally create whatever you fancy and individuals are able to download and install the application. Many programmers have jumped ship from iPhone apps to producing programs for the Android on account of the flexibility it gives them.

If you build an app for the iPhone then it is in the hands of a reviewer who decides if your app is good enough to be sold on iTunes or if it is suitable for the app store. Many programs never get published due to Apple's censorship rules. In addition to this, research firm, NDP Group said that 50 % of all smartphone sales are for Android smartphones. By the end of 2010 Thirty two million handsets were running Android. It's no surprise that everyone is investigating the right way to develop Android apps.

Android apps are coded in Java. You will need to know this language or use a coder who does. The next thing is to download and set up the Android Software Development Kit (SDK) from Google. The SDK has libraries, classes, code examples plus an interface to test out your new Android application. You can even download the Google APIs Add-On extension, which includes libraries specific to Google's numerous web services.

You will usually design and style the gui in Illustrator and save the output in vector format. Having said that, it really is wise to get a good designer to design the UI. The libraries in the SDK also contain some standard vector graphics that can be used when building an Android app. Should your application produces data which should be saved and referenced later like a weight tracker that you enter your weight and plot trends using a chart over time then you've got to store the data inside of an SQLite database. You will in addition need to create the necessary code to create, write, delete and retrieve data from the database. data from the database.

Getting the finished app from your pc to your Android phone is a tad complex because it needs to be converted, compiled then deployed. Android works with a system called Dalvik Virtual Machine. Your Java Class files have to be converted to .dex files using a tool called DX. When this is done it must be packaged in to an .apk (Android Package) file by using something called the Android Asset Packing Tool. Only if this is successfully done can the application be installed on an Android handset.

The good thing is there are huge libraries of freely available code on the Android developers website and on third party sites which offer tutorials on how to get cracking developing your first Android application.




About the Author:



1 comment: