Android Basics for Beginners

Last modified 23rd March 2017

We all are familiar with Android Application, but few are good at developing such applications. So here are the basics of Android Development.

To write or use code smartly everyone needs a platform which is called Integrated Development Environment in short IDE. For Android, it is Android Studio which looks like the image shown below,

Android Studio Sample Screenshot

Android Studio Sample Screenshot

Before going to the coding sample you need to know XML (Xtensible Markup Language), which is developed in 1990s to overcome the drawback of HTML(HTML does not allow the definition of new text elements). In either means, XML is the language used for creating the layout or UI. Java is used to write dynamic code for an Application(Android).

 

Views: Can be images, text, buttons etc…

Here is the basic code format of Android,

Code starts here,

1 <TextView
2      android:text=”Happy Birthday Sister”
3      android:background=”@android:color/darker_gray”
4      android:layout_width=”150dp”
5      android:layout_height=”75dp” />

Coding Ends.

  • The numbers represents only lines which come with the platform
  • Whenever writes a code incorrectly, In Android Studio it will be displayed in Red colour