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

Checking external storage

Hello

I'm currently working on the Ribbit app and I'm having a little problem when trying to take a picture. My code shows no errors to me.

When I click the "Take photo" button, the toast message "There was a problem accessing your device's external storage".

But the weird thing is that there is an SD-card mounted to my Galaxy s4. I've tried running it when the app is connected to my laptop using the USB-cable and when it isn't connected. Still I always get the toast message.

Any help would greatly be appreciated. Nicolas de Fooz

Ureche Gabriel-Terry
Ureche Gabriel-Terry
5,566 Points

Be sure you add: Android <p><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/></p> not: Android <p><uses-permission android:name="Android.permission.WRITE_EXTERNAL_STORAGE"/></p> It is case sensitive, i made this mistake.