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

Method play

android/src/SoundUtil.java:45–51  ·  view source on GitHub ↗
(Context context, String name)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
getMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected