showDialog在API level 13的时候已经过时了,SDK文档中推荐使用DialogFragment类来代替
public final void showDialog (int id)
Added in API level 1This method was deprecated in API level 13.
Use the newDialogFragment
class withFragmentManager
instead; this is also available on older platforms through the Android compatibility package.Simple version of
showDialog(int, Bundle)
that does not take any arguments. Simply callsshowDialog(int, Bundle)
with null arguments.