Saturday, 20 September 2014

Getting to know android part-1

So lets begin with some tutorials um... lets see the basics  of android phone like what is what exactly.Cause I have seen many people misunderstanding things on their DRoid
so lets see  I can post some links .
So lets start 
To learn the basics of the Android 


This is the architecture of an android phone now I know that is just going over your head,so just keep reading

Lets see first we have to start from the bottom of that image
Lets get to the hard part before we learn about the easy part

KERNEL

So what exactly is a kernel,some say is the main part of android,some say its the heart of android,
Now I call it a bridge between the software of android(I mean the OS,you will learn about it down the tutorial)And the hardware.The hardware is the main thing its the skeleton of your phone it consists of cores,then your IC{Integerated circuit} etc.Now why do I call it a Bridge for the main reason say you want to shut down your  phone,you don't remove the battery and shut it right you use the power button now how does the power button power down your phone?...so basically a command is sent from the software to the hardware to shut down and same way to power it on .
Now unless your not interested in development you need not know in detail of the kernel...but its based on Linux the open development source
http://simple.wikipedia.org/wiki/Linux
You can refer to this for information on linux 
NOW examples of what a kernel can do
It starts the drivers in your phone  for example Wifi,sets your audio level,connects your camera to the camera app  etc etc.


Next is a libraries.What is a library?

OKAy library isn't  a ROOM full of BOOKS .IN Android it is something which helps the apps to adapt to the environment of the OS.
THE games you play need libraries without a library the app will not function well
the library is the framework like the foundation of a building it without it the apps will fail 
I know its a bit complex but there is nothing much i can do to make it simple I can say that to run a video you need a library file present 

WHAT  is virtual machine ?

A virtual machine is like a software implementation of a physical computer which works like real physical computer. It means a virtual machine can compile and run any program just like a physical computer does for us. In other words we can say it is a like a emulator compared to the real physical machine. But there is a dark-side of virtual machine as it is less efficient than real physical computer and provide unstable performance when multiple virtual machine exist on the same machine.

ANDROID RUNTIME

This has two subdivisions 1.Dalvik vm... 2.ART{ANDROID RUNTIME }

DALVIK

Dalvik is the process virtual machine (VM) in Google's Android operating system. It is the software that runs the applications on Android devices. Dalvik is thus an integral part of Android, which is typically used on mobile devices such as mobile phones and tablet computers as well as more recently on embedded devices such as smart TVs and media streamers.

ART

ART is a new Android runtime being introduced experimentally in the 4.4 release. This is a preview of work in progress in KitKat that can be turned on in Settings > developer options. This is available for the purpose of obtaining early developer and partner feedback.

FEATURES OF ART

Ahead-of-time (AOT) compilation

ART introduces ahead-of-time (AOT) compilation, which can improve app performance. ART also has tighter install-time verification than Dalvik.
At install time, ART compiles apps using the on-device dex2oat tool. This utility accepts DEX files as input and generates a compiled app executable for the target device. The utility should be able to compile all valid DEX files without difficulty. However, some post-processing tools produce invalid files that may be tolerated by Dalvik but cannot be compiled by ART.
OKAY I Will write soon for now read this tutorial the next one will be up soon cheers 
DO comment on how the tutorial is.

No comments:

Post a Comment