呼叫对话框:在API 10不起作用 [英] Call Dialog: Not work on API 10
本文介绍了呼叫对话框:在API 10不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个扩展对话框片段的类。为了说明这一点对话框使用该code
I have a class that extends Dialog Fragment. To show this Dialog use this code
DialogClass myDialog = new DialogClass();
myDialog.show(getFragmentManager(), null);
在我的表现,我喜欢的minSdkVersion 10的API,事实上日食告诉我
In my manifest I like minSdkVersion APIs 10 and in fact eclipse tells me
- 呼叫API需要11级(当前分钟为10):安卓preference $ P $#pferenceActivity getFragmentManager
- 呼叫API需要11级(当前分钟为10):android.app.DialogFragment#秀
我该怎么办使用API 10来显示对话框?
How can I do to show the Dialog using the API 10?
推荐答案
您必须使用SupportFragmentManager代替FragmentManager
You must use SupportFragmentManager instead of FragmentManager
这篇关于呼叫对话框:在API 10不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文