Thanks if you are watching us!
This video is on, how you can easily set an alert dialog box, which would appear before closing you application. It will appear when back button is pressed. But you can call this method any where as per you convince.
Documentation:
Dialog - https://developer.android.com/guide/t...
AlertDialog - https://developer.android.com/referen...
AlertDialog.Builder - https://developer.android.com/referen...
onBackPressed - https://developer.android.com/referen...)
Activity onBackPressed() - https://developer.android.com/guide/n...
End screen:
Video by ftock.com - Free Stock Footage from Pixabay
Stock Footage: https://pixabay.com/users/ftockcom-88...
Pixabay: https://pixabay.com/?utm_source=link-...
If you liked this video, please like it and subscribe out channel for more such videos.