1.Android lifecycle.

onCreate() This is the first callback and called when the activity is first created.
onStart() This callback is called when the activity becomes visible to the user.
onResume() This is called when the user starts interacting with the application.
onPause() The paused activity does not receive user input and cannot execute any code and called when the current activity is being paused and the previous activity is being resumed.
onStop() This callback is called when the activity is no longer visible.
onDestroy() This callback is called before the activity is destroyed by the system.
onRestart() This callback is called when the activity restarts after stopping it.

2.Android Architecture

Applications,Application Framework,Libraries,Android runtime and Linuxkernal

3.Android components.

Intents, Services,Broadcast receivers.

4.What is Service and Broadcast recevers in Android Components.

Service:They handle background processing associated with an application.

Broadcast recevers: They handle communication between Android OS and applications.

5.If you extend broadcast receiver which methods you override.

Onreceive() method

6.What is content providers in Android components

They handle data and database management issues.You can share data between two applications.

7.What is sqlite database

SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation.

8.Diff between Sqlite and MySql.Why u use sqlite for Mobile applications?

Sqlite are highly useful for standalone apps and apps on small devices.

Mysql is typically used as a client-server DBMS where the client process interacts with the DB server process using some sort of networking and stores the large databases.

9.If u extend the sqliteOpenhelper class which menthods you override and tell me the parametrs in that methods?

onCreate(Sqlitedatabase db)

onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)

10.What is Async task and which methods u override?

To perform long lasting tasks/background operations and show the result on the UI thread without affecting the main thread.

Methods are:

1.onpreexecutive()

2.doInbackground()

3.onPostExecutive()

Advertisements