Wednesday, June 8, 2011

Time to Introduce the Android Architecture

Well... if you ask me to explain about android architecture, I'll prefer that, please go through with “Dev guide”  (please go through with it and come and read it again so you can understand a lot! ;) )

Nevertheless, small brief induction about android on my own way!
mmmmm.......For me android is like a pizza! ;)

Pizza has base bread made by dove! Like that android’s core is Linux “version 2.6”, which manage the security issues, memory management, process management, network stack, and driver model.  Furthermore it takes the responsibility to hide the complexity of hardware and the rest of the software stack! 

Wow… may heard this old story during you OS lectures or when you read some other OS books.

Is that possible to eat only pizza baked dove?? Yes, it is possible... But it is not taste enough!
On top of the dove in pizza, we may taste some tomato or chili sauce!!! Like that Run time and some set off libraries are working as base binding in order provide more functionalities!

Well! Mozzarella cheese in pizza has big responsible to bind the toppings and Sauce with pizza bread! Similar to that, Android framework is intermediately working in-between applications and libraries and runtime engine,
Well everything is perfect right now and you can deliver the pizza... Then what about the consumer preference??? I mean toppings like chicken, bacon, mushroom, onion, tomato and etc!!! yeap… you are correct!!, as you think! each and everyone have their own unique taste of choice! 

Hence, android provide the facility to develop and run the application with users own taste of choosing the application for them… those applications are runs on top of the android framework!


Android System Architecture

Friday, June 3, 2011

First Experiment with Android Development Tools

In order to continue this tutorial, you should have installed necessary development tools and IDE for Android application development. If not please go through with my previous blog!

Open the Eclipes IDE and click on File -> New->Other
Then you will find a wizard as give in Figure 1, and select Android Project.

Figure 1
Figure 2

Once you typed the project name you may encounter an error saying that “An SDK Target must be specified.” It means that you have not set the respective android SDK for the tool.

In order to set the path, go to window -> preference. You will find a wizard as shown in figure 3,

Figure 3

Select android first and give the SDK location by selecting “Browse...” button. Once you select the correct path press “Apply” button. The “Figure 4” is illustrating the result of previous query.

Figure 4

Wheew…. We are configured the development tool!
Now we will start to create our first android application!!... Better we call it as Testing application ;)
As mention previously create a new android project and give the values for respective fields and click on finish.
Figure 5

Now go to package explorer and Right click on the Sample project.

Figure 6

Go to Run As -> and clicks on Android Application!! WOW are we done with our application work mmmm is that possible to see our applications output???!
Answer is No…. you will get an error! As mentioned in figure 7!!!!

Figure 7
Well it is ok! ;) Since we haven’t configured our “android virtual device” emulator for test our system we got this error.
In order to tackle this, click on “Yes” Button.
Then you will get AVD Manger, where you should click “New” button in order to configure new AVD!

Figure 8
Figure 9
Click "start" on AVD Manager!

WOW you got the new anroid Emulator

Figure 10

Wait for some time until it load.... it may take 1 to 5 minutes depend on machine performance.
Figure 11

Before you get into programming… have some nice time with the AVD and experiment it!

Figure 12

Wohhwww whooww it’s awesome! It is your program in mobile!! Well done.
If you have any problem in this experiment and configuration let me know I’ll try to help you out!

A Kick Start with Android Development tools

You need some tools and development kits , in order to develop an android application!!!

First of all you NEED a JDK(Java Development kit)

once you downloaded and installed..... you need an android SDK (Software Development Kit)

Install the android tool kit!!!!

mmmmm..... Is that enough to implement an application for android phone?......

unfortunately it is bit hard to survive to mange code with out IDE!! :(

So let choose IDE for our android app development and experiment!!!
If you ask me, I would recommend Eclipse IDE! since its free and supported by Google!

Download it and open it in your machine :)

I'll tell you rest in another post!!