问题
The method showDialog(int)
from the type Activity
is deprecated.
What's the reason? and how to solve it?
回答1:
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
来源:https://stackoverflow.com/questions/11220820/the-method-showdialogint-from-the-type-activity-is-deprecated-in-android