Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static String getRoot(String loc) { if (loc.startsWith("/mnt/sdcard")) { return "/mnt/sdcard"; } else if (loc.startsWith("/mnt/innerDisk")) { return "/mnt/innerDisk"; } else { return "/mnt/usbDisk1"; } //return loc; } }