I am working on a mobile app. In which i am using amazon s3 service. For that i make an Identity pool. But when it created it automatically set the region in identity pool id to US-EAST-2. Now the problem is when i use this code
CognitoCachingCredentialsProvider credentialsProvider = new
"us-east-2:*******", // Identity Pool ID
Regions.US_EAST_2 // Region
Actually i was using an old version of amazon mobile sdk and US-East-2 is not included in it. When i use the latest version of amazon mobile sdk the problem solved.