File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes help me play audio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "help me play audio" Watch "help me play audio" New topic

help me play audio

Tung Xuan

Joined: Apr 16, 2012
Posts: 9
i can take the name of songs in folder root and add list but i can not play audio.
I get this error:
please teach me how to fix it. thank a lot
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10819

ItDoesntWorkIsUseless Please TellTheDetails

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tung Xuan

Joined: Apr 16, 2012
Posts: 9
i'm sorry, i have fix my post
thanks for reminding me
now you can show me how to fix this error?
Darryl Burke

Joined: May 03, 2008
Posts: 5115

For future reference, it's better to post a reply rather than edit an earlier post, as that takes away the context of a response and makes the forum thread difficult to follow.

That's not an error, it's what it says: a warning. here are some learning resources that will help you to both understand and fix it.
Using Threads in J2ME Applications
Networking, User Experience, and Threads

luck, db
There are no new questions, but there may be new answers.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Your audio format might not be supported. Java ME makes no guarantees beyond what's specified in section A.2.2 from Mobile Service Architecture Specification Version 1.1.0b – 18-August-2008 (available by download from JSR-000248 Mobile Service Architecture ).

Audio formats from A.2.2 Content Formats:
1. 8 kHz, 8-bit linear PCM audio in WAV
2. AMR-NB* (AMR-NB support is NOT REQUIRED for compliant development tools, device emulators, or a reference implementation running on a device emulator.)

Also see: ; and methods: .getSupportedContentTypes(), getSupportedProtocols(String content_type) of the Manager class. You can find out from Manager what additional audio formats your specific device supports.
I agree. Here's the link:
subject: help me play audio
It's not a secret anymore!