在Android中弃用类型为Activity的方法showDialog(int)? [英] The method showDialog(int) from the type Activity is deprecated in android?
问题描述
活动
的方法 showDialog(int)
已弃用 / p>
原因是什么?如何解决?
原因是什么?
http://开发人员。 android.com/reference/android/app/Activity.html#showDialog(int)
Android DialogFragment vs Dialog
如何解决? p>
改用FragmentManager使用新的DialogFragment类;这也可以通过Android兼容包在旧版平台上使用。
http://android-developers.blogspot.in/2012/05/using-dialogfragments.html
The method showDialog(int)
from the type Activity
is deprecated.
What's the reason? and how to solve it?
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
这篇关于在Android中弃用类型为Activity的方法showDialog(int)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!