jjzjj

getErrorDialog

全部标签

Android GooglePlayServicesUtil.getErrorDialog() 不显示对话框

我正在尝试在使用之前检查GooglePlayServicesAPK的可用性。我有一个包已过期的设备(日志显示为“...GooglePlay服务已过期。需要3225100但找到3136134”)。下面的代码将处理这种情况并显示一个对话框提示用户进行更新。出于我不知道的原因这条线GooglePlayServicesUtil.getErrorDialog(resultCode,this,PLAY_SERVICES_RESOLUTION_REQUEST).show();立即返回,不显示对话框(并且不会在UI事件上阻塞UI线程)。能否请您说明可能发生的情况以及如何纠正代码为了显示对话框?@Ove

android - GooglePlayServicesUtil.getErrorDialog 为空

我正在使用ACRA(arca.ch)生成自动错误报告。我刚刚使用GoogleMapsAndroidAPIv2发布了我的应用程序的新版本。我在尝试显示GooglePlayServicesUtil.getErrorDialog返回的对话框时收到EEEPad和TransformerPad用户报告的错误。有谁知道为什么会发生这种情况?这是acra报告的相关代码和Logcat:调用此行时:intresultCode=GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);if(resultCode!=ConnectionResult.

android - GooglePlayServicesUtil.getErrorDialog 为空

我正在使用ACRA(arca.ch)生成自动错误报告。我刚刚使用GoogleMapsAndroidAPIv2发布了我的应用程序的新版本。我在尝试显示GooglePlayServicesUtil.getErrorDialog返回的对话框时收到EEEPad和TransformerPad用户报告的错误。有谁知道为什么会发生这种情况?这是acra报告的相关代码和Logcat:调用此行时:intresultCode=GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);if(resultCode!=ConnectionResult.

android - getErrorDialog 已贬值。更新后的功能是什么,我该如何使用它?

我目前正在尝试将DriveAPI授权的使用整合到我的应用中。GoogleDevelopersGuide指出我必须在我的连接失败方法中使用getErrorDialog。但是,当我放入getErrorDialog时,它指出该方法已过时,我需要使用“更新”版本。但是,它没有说明我应该使用什么。有谁知道这个函数的更新版本吗? 最佳答案 However,whenIputthegetErrorDialogin,itstatedthatthemethodwasdepreciated,andthatIneededtousean'updated've