For import/export, include the external storage location.

This commit is contained in:
Jimmy Shih
2013-06-21 15:44:00 -07:00
parent 021fa9668f
commit fcb2c9ea7f
5 changed files with 38 additions and 17 deletions
@@ -84,6 +84,20 @@ public class FileUtils {
return dir.mkdirs();
}
/**
* Gets the display directory.
* @param components the components
*/
public static String getDisplayDirectory(String... components) {
StringBuilder dirNameBuilder = new StringBuilder();
dirNameBuilder.append(File.separatorChar);
dirNameBuilder.append(SDCARD_TOP_DIR);
for (String component : components) {
dirNameBuilder.append(File.separatorChar);
dirNameBuilder.append(component);
}
return dirNameBuilder.toString();
}
/**
* Builds a path inside the My Tracks directory in the SD card.
*