[attachment=12510:Screenshot from 2012-11-28 13:04:21.png]
public class MusicWrapper
{
public static void setContext(Context context)
{
m_context = context;
m_player = new AsyncPlayer(null);
}
public static void playTrack(String filepath)
{
m_player.play(m_context, Uri.parse("file:///android_asset/"+filepath), true, AudioManager.STREAM_MUSIC);
}
private static AsyncPlayer m_player;
private static Context m_context;
}