| by Alok Singh | 4 comments

Android Interview Questions and Answers for freshers

What is Activity?
Activity is entry point of an application. It provides user interface so that user can perform actions as well as view data.
To create activity you need to extend Activity or AppCompatActivity.

What is Context?
Context is an abstract class which has information related to application environment whose implementation is provided by Android system.
It provide access to application-specific resources and classes and application-level operations like lunching activity, broadcasting etc.

What are the android application Components?
There are 4 application components:

1
  1. Activity
  2. Service
  3. Content Provider
  4. BroadcastReceiver

Android OS Versions, OS Name and API Level

OS Version OS Name API Level
1.5 Cupcake 3
1.6 Donut 4
2.1 Eclair 7
2.2 Froyo 8
2.3 Gingerbread 9 and 10
3.1 and 3.3 Honeycomb 12 and 13
4.0 Ice Cream Sandwich 15
4.1, 4.2 and 4.3 Jelly Bean 16, 17 and 18
4.4 Kit-Kat 19
5.0 Lollipop 21
6.0 Marshmallow 23
7.0 Nougat 24-25
8.0 Oreo 26-27
9.0 Pie 28

 

Here you can find some great application that you can use in your daily life.
TOP 5 AWESOME Android Apps In 2019

 

What is Intent and its type?
Intent is used for communication between different application component also it is a messaging object. It can be used to start activity/service or delivering broadcast.
There are two types of intent :

  1. Implicit Intent: Type of intent which is used to start component of same application by using full qualified class name is known as explicit intent.
  2. Explicit Intent: Type of intent which is used to start component from other/same application by broadcasting action is known as implicit intent.

Life-cycle of Activity?

activity life cycle

What is fragment and it’s life-cycle?
Fragment provides portion of user interface after hosting by an activity. It also provides reusable user interface.
Fragment has its own life-cycle which is synced with activities life-cycle.

fragment-life-cycle
Fragment Life Cycle 

 

Alok Singh

Alok Singh

A Computer Science graduate, a blogger, a web developer worked on various mobile app development and web technologies.

Other Post by :