try opening files too

This commit is contained in:
tibbi
2016-07-13 15:45:01 +02:00
parent b8d517d3dc
commit 04b1173dc7
4 changed files with 22 additions and 5 deletions

View File

@@ -11,6 +11,10 @@ public class Utils {
return path.substring(path.lastIndexOf("/") + 1);
}
public static String getFileExtension(String fileName) {
return fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length()).toLowerCase();
}
public static void showToast(Context context, int resId) {
Toast.makeText(context, context.getResources().getString(resId), Toast.LENGTH_SHORT).show();
}