When I try do a copy one file of the external storage for into folder database, this error happens:
java.io.IOException: read failed: EBADF (Bad file
Check whether your input(stream) exists before reading.
Also see if you have these permissons:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>