该方法的ShowDialog(INT)从该类型的活动是去precated android系统中? [英] The method showDialog(int) from the type Activity is deprecated in android?
问题描述
方法的ShowDialog(INT)
从类型活动
是德precated
是什么原因?如何解决呢?
What's the reason? and how to solve it?
推荐答案
是什么原因?
<一个href="http://developer.android.com/reference/android/app/Activity.html#showDialog%28int%29">http://developer.android.com/reference/android/app/Activity.html#showDialog(int)
的Android DialogFragment VS对话
如何解决呢?
使用与FragmentManager,而不是新的DialogFragment类;这也可在旧平台通过Android兼容包。
Use the new DialogFragment class with FragmentManager instead; this is also available on older platforms through the Android compatibility package.
<一个href="http://android-developers.blogspot.in/2012/05/using-dialogfragments.html">http://android-developers.blogspot.in/2012/05/using-dialogfragments.html
这篇关于该方法的ShowDialog(INT)从该类型的活动是去precated android系统中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!