(Context context, String path)
| 51 | } |
| 52 | |
| 53 | public static boolean playExternal(Context context, String path) { |
| 54 | final File file = new File(path); |
| 55 | if (!file.exists()) { |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | return run(MediaPlayer.create(context, Uri.fromFile(file))); |
| 60 | } |
| 61 | |
| 62 | private static boolean run(final MediaPlayer mp) { |
| 63 | if (mp == null) { |