Writing a file on an SD Card - Problem

Put your problem here if it does not fit any of the other categories.

Writing a file on an SD Card - Problem

Postby Federico » Thu Feb 10, 2011 7:22 pm

Hi everybody,

I have created an app which writes a raw file in an SD Card. When I run my app with the emulator, the file is correctly written in the SD Card... but when I install the app on my phone, the file is not written in the SD Card... why this happens??? Thanks in advance!

Federico
Federico
Freshman
Freshman
 
Posts: 3
Joined: Thu Feb 03, 2011 7:53 pm

Top

Re: Writing a file on an SD Card - Problem

Postby imbroken » Thu Feb 10, 2011 10:08 pm

Any errors/exceptions? Could you provide us some code?
imbroken
Senior Developer
Senior Developer
 
Posts: 131
Joined: Thu Jan 06, 2011 6:57 pm
Location: Germnay

Re: Writing a file on an SD Card - Problem

Postby azekrot » Fri Feb 11, 2011 3:09 am

If the phone is connected to the computer via USB, then the SD card is mounted and not writable on the phone.
azekrot
Developer
Developer
 
Posts: 49
Joined: Thu Sep 02, 2010 7:58 pm

Re: Writing a file on an SD Card - Problem

Postby elnoxvie » Fri Feb 11, 2011 7:19 am

1. try to check if you have permission to write to SDCARD
2. check if the sdcard is mounted and you have write permission.

Hope this helps.
elnoxvie
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Sep 01, 2010 9:28 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests