在Android中弃用类型为Activity的方法showDialog(int)? [英] The method showDialog(int) from the type Activity is deprecated in android?

查看:542
本文介绍了在Android中弃用类型为Activity的方法showDialog(int)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

活动的方法 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆