amazonwebservices/aws-sdk-for-android — pull request #1 by philippb (2012-06-27 01:23:38+00:00)
Title: use synchronized keyword for validating user credentials

Hi,
we're using the AWS SDK for S3 and DynamoDB in our app. During our development we had some issues with not valid credentials. After looking at this is became clear that our two threads (image upload and writing to DB) are sometimes overwriting each others credentials.

We're using synchronized for validateCredentials() and clearCredentials() in the AmazonClientManager.java

This solves the problem.

I added the changes in my fork. Please feel free to integrate them back.
Best