I notice an error when I was trying to access to the external storage.
The method getRoot() that I implemented was returning null instead of the external storage directory:
public static File getRoot() { Log.d(TAG, 'getRoot()'); return (ExternalStorage.isAvailable()) ? Environment.getExternalStorageDirectory() : null; }
After thinking, I remember that I choose the option Disk drive instead of HTC Sync as I always do:
I reconnected the device and choose HTC Sync instead of Disk Drive.
This solve the problem; however, I must add the steps needed to working with this kind of issues. I was not expected for the external storage to be unavailable if connected to the PC.
© 2011, Alejandro G. Carlstein Ramos Mejia. All rights reserved.