Scopre le compatibilità del nostro terminale

public class DemoAudio extends MIDlet implements CommandListener
{
    private Display display = null;
    private Form form = null;
    private Command next = null;
    private Command exit = null;
    
    public DemoAudio()
    {
        display = Display.getDisplay(this);
        next = new Command("Next", Command.OK, 1);
        exit = new Command("Exit", Command.EXIT, 1);
    }
    
    protected void startApp() throws MIDletStateChangeException
    {
        String[] protocols = Manager.getSupportedProtocols(null);
        String[] contentType = null;
        form = new Form("Supported");
        StringItem si = null;
        for (int k = 0; k < protocols.length; k++)
        {
            contentType = Manager.getSupportedContentTypes(null);
            for (int i = 0; i < contentType.length; i++)
            {
                si = new StringItem("Content Type "+(i+1)+" for protcol "+protocols[k]+": ", contentType[i]);
                form.append(si);
            }
        }
        display.setCurrent(form);
    
....//