This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes MP3/J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "MP3/J2ME" Watch "MP3/J2ME" New topic


Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi all,

first of all, happy new year 2006 to everyone.

By the way I have one question:
1-I would like know if it is possible to play a mp3 file from J2ME with MMAPI ?
2-If no, is there an onother way to do it (extern API for example)


We are ones that build the world, thus build it well.
payal agrawal
Ranch Hand

Joined: Oct 11, 2005
Posts: 44
Look at the URL below:

Playing MP3 files from your server on J2ME devices

Playing MP3 from your local file on J2ME devices
Alfredo Estrada

Joined: Jan 07, 2006
Posts: 4
Heeey, First review:

Each phone souports diferent protocols and file formats, for create aMedia content from a Manager.createPlayer(...);

In the target Cell Phone, install a MIDlet that display the results of this code:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

public class MediaInformationMIDlet
extends MIDlet
implements CommandListener {
private Form mInformationForm;

public void startApp() {
if (mInformationForm == null) {
mInformationForm =
new Form("Content types and protocols");
String[] contentTypes =
for (int i = 0; i < contentTypes.length; i++) {
String[] protocols =
for (int j = 0; j < protocols.length; j++) {
StringItem si = new StringItem(contentTypes[i] + ": ",
Command exitCommand = new Command("Exit", Command.EXIT, 0);


public void pauseApp() {}

public void destroyApp(boolean unconditional) {}

public void commandAction(Command c, Displayable s) {
Have you checked out Aspose?
subject: MP3/J2ME
jQuery in Action, 3rd edition