try this:
private File getFile( String folder, String filename )
{
// make sure the directory exists on the sd card
File appRoot = new
File( Environment.getExternalStorageDirectory(), <your path> );
File fileRoot = new File( appRoot, folder );
if( !fileRoot.exists() && !fileRoot.mkdirs() )
{
showErrorMessage( R.string.msg_sd_card_not_accessible );
return null;
}
return new File( fileRoot, filename );
}
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en