How to encode a WAV to a mp3 on a Android device
Pure Java
Look into Tritonus's clean room implementation of javasound which offers an MP3 encoder plugin here: http://www.tritonus.org/plugins.html
Secondly, I would suggest looking into jzoom's libraries JLayer or JLayerME: http://www.javazoom.net/javalayer/javalayer.html (this may only be decode, not sure)
If those doesn't suit your need you can look at this article from 2000 about adding MP3 capabilities to J2SE (with source): http://www.javaworld.com/javaworld/jw-11-2000/jw-1103-mp3.html
Native route
If you want "native" performance I would look at an FFmpeg or Lame port for Android.
Lame: http://lame.sourceforge.net/
Convert mp3 to wav on Android
Check out JLayer. It should run on Android. Beware, some of the calls are synchronized
. If this doesn't work, tweak the source code or extract the converter modules from the entire source, since all you need is the mp3 to wav converter, not the mp3 player.
Related Topics
How to Set Ld_Library_Path for Java Process
A Simple Way of Embedding a Video in My Swing Gui
Create a Shell Script to Run a Java Program on Linux
Runtime Exception Not Terminating the Programm
How to Install Java Application to My Linux System
Maven Dependencies Are Failing With a 501 Error
Ugly Fonts in Java Applications on Ubuntu
Find Duplicate Value in Array List and Print the Duplicated Value
How to Get the First Day of the Current Week and Month
Eclipse Release Heap Back to System
Load Native Libraries in an Eclipse Rcp Application on Linux
When Should We Use Intern Method of String on String Literals
Split String With Dot as Delimiter
How to Know Whether Enough Memory Is Free to Deploy a New Application on a Linux MAChine