The following code which consists of downloading a file from a server and save it in the storage works fine when the device has an internal storage. But when I tried it
try Environment.getExternalStorageDirectory().getAbsolutePath()
and don't forget to add