I am on developing an App which has backup functionality.I have implemented the functionality successfully but the only one area i am still having trouble is the following...
To check the External Storage availability we can use following function to make sure that the SD card is presented.
Some android model phones have only internal memory. in such cases how am i suppose to handle the issue.
public static boolean isExternalStorageWritable(){
String state = Environment.getExternalStorageState();
if(Environment.MEDIA_MOUNTED.equals(state)){
return true;
}
return false;
}
public static boolean isExternalStorageReadable(){
String state = Environment.getExternalStorageState();
if(Environment.MEDIA_MOUNTED_READ_ONLY.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)){
return true;
}
return false;
}
Also i am aware that this will return the location of DCIM folder.but i don't think it is a best place to store important backup files.
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
Did anyone already pioneered in this problem?