// レジストレーションIDの取得
InstanceID instanceID = InstanceID.getInstance(getApplicationContext());
String regId = null;
try {
	regId = instanceID.getToken("＜Project number＞",GoogleCloudMessaging.INSTANCE_ID_SCOPE);
} catch (Exception e) {
	System.out.println("トークン取得失敗");
	System.out.println(e.getLocalizedMessage());
}
if (null != regId) {
	System.out.println("レジストレーションID: " + regId);

	// SNS制御用インスタンスの取得
	snsClient = new AmazonSNSClient(credentialsProvider.getCredentials());
	snsClient.setRegion(Region.getRegion(REGION_TYPE));

	// エンドポイントの登録
	CreatePlatformEndpointRequest endpointRequest = new CreatePlatformEndpointRequest();
	endpointRequest.setToken(regId);
	endpointRequest.setPlatformApplicationArn("＜SNS Platform ApplicationのARN＞");
	CreatePlatformEndpointResult endpointResult = snsClient.createPlatformEndpoint(endpointRequest);
	if (null != endpointResult.getEndpointArn()) {
		System.out.println("エンドポイント登録成功");
	}
}