Read SMS Messages in Android

Read SMS Messages in Android

Android allows to read SMS messages using Telephony Provider. It manages access to a central repository that stores the data related to phone operation, SMS and MMS messages. The Telephony…
Request Permissions at Runtime in Android

Request Permissions at Runtime in Android

Android contains a permission system. Permission is the right given to an application to allow access to restricted resources. If application wants to use restricted resources, the app should request…
Display Preferences Screen in Android

Display Preferences Screen in Android

Settings allow users to change the application behavior and functionality. Preferences screen can be integrated into application using the AndroidX Preference Library. It manages preferences displayed on screen and interacts…
Display Google Map in Android

Display Google Map in Android

Google Maps is a web-based mapping service that can be integrated into Android application. The Google Maps Android API is a part of the Google Play services. So we need…
Display Alert Dialog in Android

Display Alert Dialog in Android

An alert dialog is a popup window that is displayed in front of the current content. It asks the user to make a decision or enter additional details. An alert…
Display Toast in Android

Display Toast in Android

A toast is a small popup message that appears on the screen. A toast can inform about running processes and automatically disappears after a few seconds. The size of toast…
Display Snackbar in Android

Display Snackbar in Android

A snackbar is a small banner that appears at the bottom of the screen. A snackbar provides a short message about running processes and automatically disappears after a few seconds. Firstly we…
Display Time Picker Dialog in Android

Display Time Picker Dialog in Android

A time picker dialog is a popup window that allows to select a time. For this functionality Android provides the TimePickerDialog class. A layout XML file contains a Button that displays a…