About Kartik Lalan

A Computer Science Graduate, working on Android & Info-Network Security and deeply nested to it. Making it easier for you, I have tried to make very specific & detailed articles so that you can learn it swiftly with grace. Conducted multiple talks & workshops at Null-OWASP-G4H-DroidCon on Secure Mobile App development.

We also provide Corporate Training in Android App development and Best practices in developing Secure Apps

Android Custom Fonts

  So far we were using default fonts provided by Android. Its time to try android custom fonts so that we can make a rich and vivid application interface. Adding android custom fonts is very easy, just we need to add a typeface from MainActivity.java file and link it to our TextView.   Source Code : […]

Android FrameLayout Example

  FrameLayout is essentially used to represent layers of the screen, especially when adding multiple components to it. So using FrameLayout you can make watermarks in your Android App. Unlike other layouts which displays new components below or next to the previous component, Android FrameLayout always positions all its child components from top-left i.e. x=0, y=0 co-ordinate – […]

Android ScrollView Example

Whenever we are out of space in our Layouts, there comes Android ScrollView to our rescue. Using ScrollView we can cover more content then the actual screen size. Android ScrollView are of two kinds : Vertical ScrollView : Whenever we fall short of space due to our content growing vertically then we use Vertical ScrollView. […]

Android TableLayout Example

  Android TableLayout positions its child components into : Rows & Columns. Our TableLayout will have as many columns as the row with the maximum cells. We can combine some of the cells of a row using property android:layout_span. Even we can even leave some cells blank. Android TableLayout does not displays border for their rows, columns & cells, if required we […]

Android RelativeLayout Example

  In Android RelativeLayout every new component we add will align itself with respect to previously added components or the parent container. The first App (MyFirstApp) we made was itself based on RelativeLayout. Basically there are major 4 parameters – Left, Right, Top & Bottom to align any component. In case of RelativeLayout the child […]

Android LinearLayout Example

Android LinearLayout deals with placing components one after another either in horizontal or vertical manner. It acts as a parent container, which can hold components like TextView, RadioButton, EditText, ImageView, Button, as well as other Layouts inside it as their child components. Android LinearLayout are of two kind : Horizontal LinearLayout : Every new component we […]

Android wrap_content vs fill_parent

  While developing layouts in Android to specify layout_height & layout_width you have used either  wrap_content or fill_parent (match_parent). Let us compare Android wrap_content vs fill_parent.   wrap_content : The component will occupy space over  its parent only as per its content-size. We can imagine that with a balloon, the balloon will occupy space depending upon air […]

Android Orientation

  Based on content of the Activity we may require to start our App, either in Landscape (Horizontal) or Portrait (Vertical) mode. This can be done in two ways – Adding android orientation in Manifest.xml file. Adding orientation from MainActivity.java file. In this tutorial you will study both approaches of android orientation. You will also learn to […]

Install Android App into Emulator (AVD)

  It is very handy to test Android Apps on emulator (Android Virtual Device – AVD) if you don’t have an actual device. Follow the below steps to install Android App into Emulator using command line interface. Before proceeding, start your emulator (AVD) since it might take time to boot. To know procedure for creating […]

Android Activity LifeCycle

  In order to create Android Activity, we need to extend Activity class of package android.app & over-ride its built-in Activity LifeCycle methods. To customize behaviour of our Activity we need to understand some basics of Android Activity Lifecycle. Activity LifeCycle is the way our Activity works i.e. how an Activity is created, started, paused, resumed, stopped, destroyed etc., which you can […]