Android Activity Lifecycle

As I have already explained what is an activity. Today I will discuss the lifecycle of the Activity and there common methods used. Android Activity lifecycle is used to identify the different states of the application such as in running state, pause state, resume state, stopped state or destroy state etc. There are some more states also their I will discuss all of them one by one.

Let’s see how Activity Lifecycle looks like:-

Android 70

As you can see in the above figure this how the activity Continue reading

Layout Using Java Code

As I have discussed in my previous post Understanding & creating the Simple Layout . Today we will see how to make a simple layout with text view using the Java code.

Lets take an another example of a simple start-up UI of a Google Maps Application. You can see the image below.

Android 66

So let’s see no how we can make this simple layout with the help Continue reading