当我尝试按照有关如何检查 Google Play 服务是否已安装的示例进行操作时,我收到以下错误: servicesConnected 方法内的行中的“connectionResult 无法解析”
int errorCode = connectionResult.getErrorCode();
可以缺少什么?我正在复制并粘贴它。
我正在按照这个例子here http://developer.android.com/training/location/retrieve-current.html
Thanks!
这是示例中的一个错误。使用这个代替:
} else {
// Get the error code
// Get the error dialog from Google Play services
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
resultCode,
this,
CONNECTION_FAILURE_RESOLUTION_REQUEST);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)