showDialog(int)和onCreateDialog(int)方法过时了

来源:互联网 发布:剑三冷艳毒姐捏脸数据 编辑:程序博客网 时间:2024/06/05 06:37
showDialog在API level 13的时候已经过时了,SDK文档中推荐使用DialogFragment类来代替

public final void showDialog(int id)

Added in API level 1

This method was deprecated in API level 13.
Use the new DialogFragment class with FragmentManager 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.

0 0