Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.