//Storeing to asset/raw folder: not possible, you cannot modify your resources or assets after compile time. Store the file to the sdcard
//Create a new folder in SD Card
//First check if the sd card is mounted or not
if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))
{
// sd card mounted
Log.d("SDCard", "SDcard is present");
}
File folder = new File(Environment.getExternalStorageDirectory() + File.separator +"Images/");
if(!folder.exists())
{
folder.mkdirs();
Log.d("SDcard", "Folder created");
}
else
{
Log.d("SDCard", "Folder already exists");
}
}
//Update...............Later
This snippet shows how to store in internal and external
Don't forget to show me your own way to solve this issue.
Don't forget to show me your own way to solve this issue.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.