introduction to android

After a long time again I m with new post that  is on introduction to android .here I will give you glimpse on android so that the basic of android is understood well to people but the primary requirement for an android developer is the good knowledge of xml and java .

Here we will discuss about the why xml and java are useful for android here we are talking simply that what android language consist of..?? It simply consist of GUI in xml and business logic in java so two files one is java and other is xml . so the knowledge about the two is necessary.

In Java we have jdk same for android we have sdk which provides the environment necessary for android and other thing is that we can do our programming in android studio or an eclipse but android studio is far better as provides good understanding for developers.

Now we shall discuss about the coding  

For coding open your android studio and in the GUI you will see file explorer in that create project .
 
  • You have to give the file name in Capital letter that is starting with a capital letter otherwise will detect an error it is one of the conventions to give the name in capital letter for example give MyApp
  • Then we have to give Layout Name that is our xml file name
  • Activity name that is our Java file name
Select min SDK so that for the above version it can run for example if we see for icecream sandwich than it must be compatible with all further version of android such as jellybean, lollipop etc.
 
Going further you will see the folder after you have created a project is the top most folder that is app folder In app folder we will have manifest folder that contains androidmanifest.xml file .
 
Second is java in which we have provided our path for example a.b.c.MyApp which will be interpreted as c.b.a. MyApp.
 
THIRD is the res folder which means resources .
 
NOTE :- androidmanifest.xml file is the configuration file for android.
 
androidmanifest.xml file contains certain permissions plus different icons and  viewing  and order of activity to load that is which is kept as a startup file etc.
 
In res folder contains layout(folder) that folder contains an xml file  other is the drawable (folder) to put image and the last one is the values (folder) contains string, styles,color etc.
 
This was the overview of the introduction about android still we will continue to discover in next posts.    
 
 
 
 
 
 
 
 

Comments

Popular posts from this blog

State space search / blocks world problem by heuristic approach /TIC TAC TOE

Navigation in Vaadin.

Drag and drop items from one Grid to another