In my activity, i have a progress dialog and i need to perform some action if some one presses the back button. When i use onBackPressed then its no good.How to handle such thing?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
add a cancel button to progress dialog. Maybe these helps Why is there no cancel button in Android's progress dialogs?
And you should use thread and handlers to do what you want.