Diff with Broadcst Receiver and Services
Service: If you want to do something in background , this will be running always in background even if the application closed. You can create this in separate process and also you can give your service to other app if you want. Downloading any content or Music is good example
Broadcast Reciever: Usually system will send some info which can be recieved by your app if you would wish to ,by registering. And you can do something what you want when that thing happens by using onReceive method. Example is the system will send BroadcastReceiver when new sms arrives or Booting done
How does RecyclerView differ from listview
RecyclerView was created as a ListView improvement, so yes, you can create an attached list with ListView control, but using RecyclerView is easier as it:
- Reuses cells while scrolling up/down – this is possible with implementing View Holder in the listView adapter, but it was an optional thing, while in the RecycleView it’s the default way of writing adapter.Decouples list from its container – so you can put list items easily at run time in the different containers (linearLayout, gridLayout) with setting LayoutManager.
What is the use of /assets and/res/raw/ folders ?
What are the fragments? Describe there lifecycle methods
What is a PendingIntent?
Diff between AsyncTask and Thread class ?
Diff between Framelayout and Tablelayout ?
How is data stored in sharedpreferences ? What is the diffrence between commit() and apply() ? Which is recommended one ?
What is StateListDrawable ?
Diff between Oncreate(), onstart,onresume, ondestroy,onstop , onpause. When are they called during the lifecycle of an Activity ?
Diff between setflags and addflags on an intent object ?
Mention 2 ways to clear the back stack of Activity when Activity is called using intent
Diff between Linearlayout and relativelayout and Absolutelayout
Diff between Activty and AppcompatActivity?
Activity , AppcompantActivty, FragmentActivity and ActionBaractivity? How are they related ?
What is Android Support Library and why is it recommended ?
Name the seven imprtant lifecycle methods of an activity?