MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / playExternal

Method playExternal

android/src/SoundUtil.java:53–60  ·  view source on GitHub ↗
(Context context, String path)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
existsMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected