我在Android 2.3上运行我的应用程序,我正在使用谷歌地图api v2。我正在尝试管理一个分辨率,一切顺利,直到我被重定向到游戏商店。 Play商店会显示警告“您的设备与此版本不兼容”。
我无法找到更多相关信息。即我可以获得支持的版本,哪些设备会产生这种效果?现在不能支持2.3上的地图吗?
我的解析代码:
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();
}
});
}
由于