The method showDialog(int) from the type Activity is deprecated.

What’s the reason? and how to solve it?
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.
What’s the reason?
http://developer.android.com/reference/android/app/Activity.html#showDialog(int)
Android DialogFragment vs Dialog
How to solve it?
Use the new DialogFragment class with FragmentManager instead; this is also available on older platforms through the Android compatibility package.
http://android-developers.blogspot.in/2012/05/using-dialogfragments.html