I encounter a strange thing about the android sdcard in my HTC Desire S,
I have one application which has the some actions to sdcard in the onCreate function,
and this application will be start when phone boot.
Now I installed this application, and restart the Phone,
when the phone restarted, my application crashed, i find it caused by the sdcard is null.
I have no idea about it. Is my fault? or the android not prepared the sdcard before the application stared?
You have to wait that the sdcard is mounted with
ACTION_MEDIA_MOUNTEDin your intent.When the phone starts, it can take some times before the sdcard is ready (filesystem checks, errors recovering etc.)