(Context context, String name)
| 43 | } |
| 44 | |
| 45 | public static boolean play(Context context, String name) { |
| 46 | Integer id = resources.get(name); |
| 47 | if (id == null) |
| 48 | return false; |
| 49 | |
| 50 | return run(MediaPlayer.create(context, id)); |
| 51 | } |
| 52 | |
| 53 | public static boolean playExternal(Context context, String path) { |
| 54 | final File file = new File(path); |