Reputation: 1071
The method showDialog(int)
from the type Activity
is deprecated.
What's the reason? and how to solve it?
Upvotes: 9
Views: 27383
Reputation: 15701
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
Upvotes: 10