i want copy pdf file from application path(/data/data/package name) to sdcard.for that i have prepared following ,
try {
source = new FileInputStream(sourceFile).getChannel();
destination = new FileOutputStream(destFile).getChannel();
destination.transferFrom(source, 0, source.size());
}
finally {
if(source != null) {
source.close();
}
if(destination != null) {
destination.close();
}
}
it is not working .PLease help.