Android 安卓播放服务解决方案“;“不支持设备”;
我在安卓2.3上运行我的应用程序,我使用的是谷歌地图api v2。我正在尝试管理一个解决方案,一切顺利,直到我被重定向到play store。play store会显示一条警告“您的设备与此版本不兼容” 我找不到更多关于这个的信息。i、 e我可以得到一个受支持的版本吗?哪些设备会产生这种效果?现在是否无法支持2.3上的地图 我的决议代码:Android 安卓播放服务解决方案“;“不支持设备”;,android,google-play,google-maps-android-api-2,Android,Google Play,Google Maps Android Api 2,我在安卓2.3上运行我的应用程序,我使用的是谷歌地图api v2。我正在尝试管理一个解决方案,一切顺利,直到我被重定向到play store。play store会显示一条警告“您的设备与此版本不兼容” 我找不到更多关于这个的信息。i、 e我可以得到一个受支持的版本吗?哪些设备会产生这种效果?现在是否无法支持2.3上的地图 我的决议代码: private boolean checkGooglePlayServicesAvailable () { final int connect
private boolean checkGooglePlayServicesAvailable () {
final int connectionStatusCode = GooglePlayServicesUtil
.isGooglePlayServicesAvailable(this);
Log.i("checkGooglePlayServicesAvailable, connectionStatusCode="
+ connectionStatusCode);
if (GooglePlayServicesUtil.isUserRecoverableError(connectionStatusCode)) {
showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);
return false;
}
Toast t = Toast.makeText(ErrorPlayServicesActivity.this,
"Google Play service available", Toast.LENGTH_LONG);
t.show();
return true;
}
void showGooglePlayServicesAvailabilityErrorDialog (
final int connectionStatusCode){
ErrorPlayServicesActivity.this.runOnUiThread(new Runnable() {
// public static final int REQUEST_GOOGLE_PLAY_SERVICES = 0;
private static final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;
public void run() {
final Dialog dialog = GooglePlayServicesUtil.getErrorDialog(
connectionStatusCode, ErrorPlayServicesActivity.this,
PLAY_SERVICES_RESOLUTION_REQUEST);
dialog.setCancelable(false);
if (dialog == null) {
Log.e("couldn't get GooglePlayServicesUtil.getErrorDialog");
Toast.makeText(ErrorPlayServicesActivity.this,
"incompatible version of Google Play Services",
Toast.LENGTH_LONG).show();
}
dialog.show();
}
});
}
谢谢您是否尝试在emulator中运行此代码?好的,该设备使用了自定义rom,这似乎是问题所在。