title: How to set the Application ARN for Amazon push SNS using Android SDK
body: <p>I am trying to register my Android device to receive push notifications, however the amazon server is returning an error saying it cannot find my PlatformApplicationArn. I am setting it using their sdk but it seems not to be finding it. </p>
  
  <p>This is the error:
  AWS Error Message: Invalid parameter: PlatformApplicationArn Reason: no value for required parameter</p>
  
  <p>This is the code that sends it:</p>
  
  <pre><code>String platformApplicationArn = "arn:aws:sns:us-east-1:897955111111:app/GCM/com.myapp";
  AWSCredentials awsCredentials = new BasicAWSCredentials("XXXXXXXX", "XXXXXXXXXXXXXXXXXXXXX");
  pushClient = new AmazonSNSClient(awsCredentials);
  CreatePlatformEndpointRequest createPlatformEndpointRequest = new CreatePlatformEndpointRequest();
  String customPushData = "my custom data";
  CreatePlatformEndpointRequest platformEndpointRequest = new CreatePlatformEndpointRequest();
  platformEndpointRequest.setCustomUserData(customPushData);
  platformEndpointRequest.setToken(pushNotificationRegId);
  platformEndpointRequest.setPlatformApplicationArn(platformApplicationArn);
  CreatePlatformEndpointResult result = pushClient.createPlatformEndpoint(createPlatformEndpointRequest);
  </code></pre>