Study: BroadcastReceiver, ListView, RecyclerView, Send SMS, Read SMS, Receive SMS, Handle Permissions in MainActivity,Â
AIM: What is Difference between ListView and RecyclerView? Create SMS Android Application that can receive SMS by BroadcastReceiver and Interface, Send SMS and read & display all SMS of Inbox by using RecyclerView according to below instructions.
Create MainActivity according to below UI design.
Create SMSView Class with two member variables (Phone No., Message) and create adapter class of RecyclerView.
Create SMSBroadcastReceiver to receive SMS.
Create AlertDialog Method in MainActivity to display Sent SMS and receive SMS contents in AlertDialog.
Add Permissions of Read, Send, Receive SMS in Manifest File and same check in MainActivity.
Use Databinding in gradle file to easy way integrate xml into kotlin file
Use Material 3 design for UI
Create Refresh Option in Option Menu. It will reload SMS contents in RecyclerView.