How to use Exit Alert Dialog in Android App - Android Studio 2.2.2 Tutorial

preview_player
Показать описание
Hello, Hi every cool android developers, here we are to learn using AlertDialog (Alert Dialogs) in android studio.

When the user press the back button of their android device, it will show up the small pop up windows which says that "Do you want to exit ?" Yes, when made it this time !!

Hope that was a great tutorial for you.

Feel free to subscribe so you won't miss any updates !!

Checkout the source code for this tutorial on our official website

Thanks

Subscribe Me :

Find Me :

Google :

Twitter :

GitHub :

Subscribe Me :

-~-~~-~~~-~~-~-
Please watch: "Adobe Photoshop CC 2015 Malayalam Tutorial [Malayalam Tutorial]"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Watch 'How to add Custom Dialog to Android App' here:

sabithpkcmnr
Автор

really great video, no unnecessary filler, just straight to the point.

Makersofever
Автор

Thanks! did the job for me, just modified with go back function for back pages.

HimanshuGoel
Автор

I have question. Whay when i click "yes" to close/exit, always back in before activity. And this app not close. Pls answer

viruusred
Автор

How can we use this method to close all activities

halithhamja
Автор

Nice it's work!!!
i subscribe to your channel
Sorry for my english, i'm French

Tutozz
Автор

hi i want to use the Exit Alert box on the Activity That already extends "ListAcitivty "and we can't extend more than one class (I think)
so how to do that

sadhvivarshney
Автор

Hey, This code is working fine, But the problem is whenever I come to this page from another page.
And when I press Exit button in pop-up, It goes back to previous page !

akshay
Автор

why dialogInterface.cancel(); is not work for me?
dialoginterface read but cancel not. cancel got red..

bestcsgo
Автор

Nice Video dude,
Please Correct "No" Instead "Yes"

pavi
Автор

Can I put this even though it's not a new activity? Are the other codes will be affected if I remove the APPCOMPAT?

Louise-nifh
Автор

thanks dude, but can i do it for another buttons like home key and taskbar key

omarwalid
Автор

I have created 3 activities, and when I click Close it just goes back to the previous activity, what should I do ?

ahmadalmaghraby
Автор

good video to learn dialog prompt in android

trail_bliss
Автор

nice dudee thanks!!!
but if i want the cancel click in the right side and the finish click to close the app in the left side, how to do that? please help me.
sorry for my bad english

tbputra
Автор

i tried the code on navigation item it didnt work.can u help?

thelazycoder
Автор

Can we add a video when clicked back button instead of setting a dialogue box

maheshsrirangam
Автор

How do i display "Come Again" message after closing activity? Please help

emmanuellailung
Автор

How to change the colour of "exit " and "cancel"

ArunKumar-diyk
Автор

Hello thanks for this video . why we didn't we use super.onBackPressed(); ?

bzgede
welcome to shbcf.ru