1 - Android デバイスの Google Play サービスをデフォルトにする
いいえ、すべてのデバイスにデフォルトで Google Play サービスがインストールされているわけではありません。
2 - 顧客にこのサービスのインストールを依頼するのは本当ですか?
3 - 2 つの質問が「はい」の場合、このサービスを自分のプロジェクトに組み込むにはどうすればよいですか。顧客にサービスのインストールを通知し、自分のプロジェクトがこのサービスを単独でインストールするように通知するだけです。
通常、Google Play サービスがデバイスにインストールされているかどうかを確認し、GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
Google Play マーケットの Google Play サービス アプリにリンクするエラー ダイアログを表示します。
このようなもの:
int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
if (resultCode != ConnectionResult.SUCCESS) {
if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
GooglePlayServicesUtil.getErrorDialog(resultCode, this,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
} else {
Log.i(TAG, "This device is not supported.");
finish();
}
}
詳細については、次のリンクをご覧ください: http://developer.android.com/google/play-services/setup.html#ensure