Skip to main content

Posts

Showing posts from July, 2018

Interview Questions

Broadcast receivers - Interview questions: 1) what is broadcast receiver? ans : It is a component of android, which is used to receive/ listen important system events. eg: BATTERY LOW, POWER CONNECTED, .... 2) How do you start a receiver? ans : By using  Intent , and  sendBroadcast()  method 3) How do you kill a receiver? ans : abortBroadcast() method. 4) types of receivers? ans : static receivers, dynamic receivers, ordered receivers, sticky receivers. 6) What are the life cycle methods of broacast receiver? ans : onreceive() Database related interview questions: 1. What is database? ans : It is a logical container of data/ information. 2. Which database do we use in android? ans : SQLite - RDBMS 3. Where is database stored? ans : Database is stored within the application, in Internal memory. 4. How to store images/ audios/ videos in a table using SQLite? ans : by using  BLOB datatype  = binary large object . ...