You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't need SoundService, I just want to play a mp3 file from a path.
I don't know how to play. so I build a project, in my main activity, when I click the button, I try to write a program in this way:
Track track;
File tmpFile;
public void btnPlayClicked(View v) {// I can break and step the following program.
track=new Track(this,null);//just guess
track.setDataSourceString(tmpFile.getAbsolutePath());
// track.prepare();//fail so comment out.
track.start();
track.decode();//no thing happen
}
Can you tell me how to do?
The text was updated successfully, but these errors were encountered:
I don't need SoundService, I just want to play a mp3 file from a path.
I don't know how to play. so I build a project, in my main activity, when I click the button, I try to write a program in this way:
Track track;
File tmpFile;
public void btnPlayClicked(View v) {// I can break and step the following program.
track=new Track(this,null);//just guess
track.setDataSourceString(tmpFile.getAbsolutePath());
// track.prepare();//fail so comment out.
track.start();
track.decode();//no thing happen
}
Can you tell me how to do?
The text was updated successfully, but these errors were encountered: