I have the code to play music from a JAR or from an RMS:
(From an RMS)
Code:
RecordStore store;
int id;
// play back from a record store
try {
InputStream is = new ByteArrayInputStream
(store.getRecord(id));
Player player = Manager.createPlayer(is, "audio/X-wav");
p.start();
}
catch (IOException ioe) {
}
catch (MediaException me) {
}
...
(From a JAR)
Code:
try {
InputStream is =
getClass().getResourceAsStream("audio.wav");
Player player = Manager.createPlayer(is, "audio/X-wav");
p.start();
}
catch(IOException ioe) {
}
catch(MediaException me) {
}
But what I want to know is how to actually get the music into the JAR from the RIM JDE or onto the record store.
If you guys don't know that, do you know how to make the default ring tone play?
Thanks a lot in advance