Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Retrieving and Viewing Messages Using Picasso to View Images from the Web

Image will not shown when testing on device

The captured image cannot be shown when testing on device. When try open the image file in Data Browser on Parse, I get the following page:

This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>98EBFCB49AEEE511</RequestId> <HostId> +MLlEu0/4zVBf1tH2NRboAg4h4ZchbtdKcxuZSs0tSOi5N8DHutK3AbJh8X4GCrr </HostId> </Error>

2 Answers

Checkout https://github.com/square/picasso/issues/420

Apparently you can use some of the api provided in Picasso such as fit() and resize() to help with larger images.

Thanks!

The file size haven't exceed the limit of 10MB (about 2MB). Lower the camera resolution will work but I don't want to change the camera resolution each time. Any help? Thanks.