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...
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...
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...
A date picker dialog is a popup window that allows to select a date. For this functionality, Android provides the DatePickerDialog class.
A layout XML file contains a Button that...
Android allows to read contacts using Contacts Provider. It manages access to a central repository that stores the contact details of the people. The Contacts Provider is a content provider...
Android allows to capture current location of the device, and we can build location-aware applications. When developing location aware-application, we can choose location provider. It provides periodic location reports of...
A web view can be used to display web pages inside an application without opening a browser. Web view only displays a page and does not provide the browser features...
A notification is a message that appears outside an application's UI to get user attention, provide reminders, notify about events, etc. A typical notification consists of a small icon, title...
Internal storage is used to save and retrieve the application's private data. Other applications don't have access to this data. Files will be removed when the user uninstalls the application...
Shared preferences are used to save and retrieve key-value data. It only allows to save primitive data types: int, long, float, boolean, and string. The data are stored in an...