Take the 2-minute tour ×

I am downloading a file to the sd memory card of the client, I use the dot (".") in front of the name of the file to hide it, the problem is that when searching for it then to open it, not found. Any way to find it?

Edit: I'm looking for it as well:

File file = new File("/sdcard/SEAS Campus/" , "." + StudiesVO.bookID+".pdf");


Also without a point, but no results


share|improve this question
How are you searching for it? –  Kumar Bibek Jul 16 '12 at 7:38
@Kumar Bibek: I have answered your question back to edit my post –  Android user Jul 16 '12 at 7:42
Do you manually able to see hidden file in sdcard?? –  AkashG Jul 16 '12 at 7:43
Try logging the file path after you create the file object. And post what you are getting. –  Kumar Bibek Jul 16 '12 at 7:43
System.out.println(file.getAbsolutePath()); //Or some other similar logging/printing method. –  Christopher Bull Jul 16 '12 at 7:50
show 7 more comments

1 Answer

One cause for this that comes to my mind is that you have hard-coded SD card path. Different phone models might have different SD card paths so your code will not work on certain phones. Therefore you should get the external path programmatically like this:

File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/SEAS Campus/" , ".StudiesVO.bookID.pdf");
share|improve this answer
his wasn't my problem, but its shape seems more effective than mine, thank you! –  Android user Jul 16 '12 at 8:22
add comment

Your Answer


