javax.microedition.media.MediaException: unsupported type of record coding

I try to capture the audio using the MMAPI:

Manager.createPlayer ("capture://audio?encoding=pcm")

Also tried: Manager.createPlayer ("capture://audio?encoding=audio/basic")

The above work on a "BOLD" (4.6) device, but on the storm (4.7) he throws as the MediaException in the GPO. I tried on the 9500 Simulator and the real device.

PCM encoding is no longer supported?

The BlackBerry Storm does not support PCM encoding.  Quote from the article below: "Note: the PCM format is not supported by the BlackBerry smartphones that operate on the Code Division Multiple Access (CDMA) network.»

How - Audio recording on a BlackBerry smartphone
Article number: DB-00562

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/How_To...

Tags: BlackBerry Developers

Similar Questions

  • Play sounds of media on a certain event? "Error: javax.microedition.media.MediaException: no support type.

    Hello, I'm trying to play MP3 files.
    Example, if the answer is just play then "sound1.mp3 '...
    However, I get this error: "" javax.microedition.media.MediaException: unsupported type of «»
    Although I read that mp3 files are supported.
    I used this tutorial " http://docs.blackberry.com/en/developers/deliverables/17968/CS_Playing_audio_in_a_BB_device_app_1222... ".

    Note: I use Blackberry JDE 5.

    This is the code that I have actually used (has not changed anything core):

    Try
    {

    Player p = javax.microedition.media.Manager.createPlayer ("C:/Documents and Settings/User/space work/celebrity/res/sounds/RoundStart");
    p.Realize ();
    VolumeControl volume = (VolumeControl) p.getControl ("VolumeControl");
    volume.setLevel (30);
    p.prefetch ();
    p.Start ();

    }
    catch(MediaException me)
    {
    Dialog.Alert(me.) ToString());
    System.out.println ("Error:" + me.toString ());
    }
    catch (IOException ioe)
    {
    Dialog.Alert (ioe. ToString());
    System.out.println ("Error:" + ioe.toString ());
    }

    ------------------

    Thanks for the help in advance

    If you want to reference audio files in your application, the above will not work.  You must code differently.

    try something like this

    Class cl = Class.forName(replace_this_with_your: packageName.classname); //
    InputStream is = cl.getResourceAsStream("/somesound.mp3");
                   
    Create an instance of the reader of the InputStream
    p = Manager.createPlayer (that is, "audio/mp3");

  • javax.microedition.Media.Control - where is it?

    So still trying to stream - and this time watching the video.  This HAS to be a simple explanation.

    I'm trying to create a VideoControl object - but get an error 'undefined class' VideoControl.

    I have:

    Javax.microedition.media import. *; in my file, then in frustration, I added:

    Import javax.microedition.media.control;

    How I got an error saying "cannot find class symbol control" on this line.

    I'm missing a few packets of MIDP 2.0 or something?

    I am using JDE 4.5 - but have tried ad 4.3 4.7 with the same result.

    Where are these stored in the JDE packages?

    Jim

    Good problem solved. Please mark the thread as solved.

  • Application crashes with the Exception when using javax.microedition.media.Player

    Hello

    I have an application that processes data from bluetooth and send it to the web service. Recently, there was a request to add sounds to the request. Now when the application processes lots of data and the player plays constantly after a few seconds I get exception "Application is not responding. And then the treatment is finished. In the newspapers, I see many connected after this exception ForcedStackTrace exception.

    The sounds are played in the separate thread. If the app is not play sounds or short sounds - everything works fine. Is it possible to avoid what happens an exception? Why this is happening?

    Thanks in advance,

    Viktor.

    Solved by implementing my own PlayerManager, which running in a separate thread would point the way to the queue rather then the number of threads by using the internal player application.

  • Consume a Web service using javax.microedition.xml.rpc.Operation

    Requirement. Consume a Web Service using native libraries of Blackberry.

    Target WebService: http://ws.cdyne.com/WeatherWS/Weather.asmx

    WebService of the operation: http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

    Environment: Eclipse JDE 1.3.0 with BB SDK Enterprise Server BB 5.0.0

    First Guide of: http://blog.bayestech.com/?tag=blackberry

    1 Java Stub

    public interface IWeatherServiceZip
    {
        public String getWeatherServiceByZip(String zipCode) throws java.rmi.RemoteException;
    
    }
    

    2. Service Java class

    import java.rmi.RemoteException;
    import javax.microedition.xml.rpc.ComplexType;
    import javax.microedition.xml.rpc.Element;
    import javax.microedition.xml.rpc.Operation;
    import javax.microedition.xml.rpc.Type;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    
    import com.lm.bb.ws.interfaces.IWeatherServiceZip;
    
    /**
     * @author lmo0
     *
     */
    public class WeatherServiceZip implements IWeatherServiceZip, javax.xml.rpc.Stub
    {
        protected static final QName _qname_operation_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final QName _qname_GetCityWeatherByZIPResponse = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIPResponse");
        protected static final QName _qname_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final Element _type_GetCityWeatherByZIP;
        protected static final Element _type_GetCityWeatherByZIPResponse;
    
        private String[] _propertyNames;
        private Object[] _propertyValues;
    
        public WeatherServiceZip()
        {
            _propertyNames = new String[]
            { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[]
            { "http://ws.cdyne.com/WeatherWS/Weather.asmx" };
        }
    
        public void _setProperty(String name, Object value)
        {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    _propertyValues[i] = value;
                    return;
                }
            }
            String[] newPropNames = new String[size + 1];
            System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
            _propertyNames = newPropNames;
            Object[] newPropValues = new Object[size + 1];
            System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
            _propertyValues = newPropValues;
    
            _propertyNames[size] = name;
            _propertyValues[size] = value;
        }
    
        public Object _getProperty(String name)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    return _propertyValues[i];
                }
            }
            if (ENDPOINT_ADDRESS_PROPERTY.equals(name)
                    || USERNAME_PROPERTY.equals(name)
                    || PASSWORD_PROPERTY.equals(name))
            {
                return null;
            }
            if (SESSION_MAINTAIN_PROPERTY.equals(name))
            {
                return new Boolean(false);
            }
            throw new JAXRPCException("Stub does not recognize property: " + name);
        }
    
        protected void _prepOperation(Operation op)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                op.setProperty(_propertyNames[i], _propertyValues[i].toString());
            }
        }
    
        public String getWeatherServiceByZip(String zipCode) throws RemoteException
        {
            Object inputObject[] = new Object[]
            { zipCode };
    
            Operation op = Operation.newInstance(_qname_operation_GetCityWeatherByZIP,    _type_GetCityWeatherByZIP, _type_GetCityWeatherByZIPResponse);
            _prepOperation(op);
            op.setProperty(Operation.SOAPACTION_URI_PROPERTY,"http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");//SOAP Action
            Object resultObj;
            try
            {
            resultObj = op.invoke(inputObject);
            System.out.print(resultObj.toString());
            } catch (JAXRPCException e)
            {
            e.printStackTrace();
            Throwable cause = e.getLinkedCause();
            if (cause instanceof java.rmi.RemoteException)
            {
            throw (java.rmi.RemoteException) cause;
            }
            throw e;
            }
            return (String) ((Object[]) resultObj)[0];
        }
    
        static
        {
            _type_GetCityWeatherByZIPResponse = new Element(_qname_GetCityWeatherByZIPResponse,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","GetCityWeatherByZIPResult"), Type.STRING, 0, 1, false) }), 1, 1,false);
            _type_GetCityWeatherByZIP = new Element(_qname_GetCityWeatherByZIP,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","ZIP"), Type.STRING, 0, 1, false) }), 1, 1, false);
            }
    
        private static ComplexType _complexType(Element[] elements)
        {
            ComplexType result = new ComplexType();
            result.elements = elements;
            return result;
        }
    }
    

    3 problem

    There is no information about the exception that occurs when I try to debug my Application actually when you call the Web Service to:

    resultObj = op.invoke (inputObject);

    Any help.  If you have any other suggestions on how to consume a web service using BB. I don't want to use KSOAP2 because the source code is not updated more and prefer the native BB mode without using the 3rd party jars.

    Thank you

    How do you generate the stub class? Have you used Sun's Wireless Toolkit?

  • ADF Mobile Client: Error when trying to import javax.microedition. *.

    Hello

    JDev throws errors at compile time when I try to deploy a sample Client Mobile ADF application.
    These errors are related to the import of javax.microedition.io. *.

    Error (11,29): javax.microedition.io package does not exist
    Error (12,29): javax.microedition.io package does not exist
    Error (180,9): could not find class HttpConnection
    Error (191,27): cannot find class HttpConnection
    Error (191,42): cannot find variable connector
    Error (250,49): inconvertible types
    Error (303,40): cannot find variable HttpConnection

    Guidance on the way in which these errors could be solved?

    Is there a wireless JDev extension to be installed to fix these errors related to J2ME?

    For JDev 10 g, I could find such an extension called JWE here: http://www.oracle.com/technology/products/iaswe/archive/developer/index.html
    I couldn't find any similar extension for JDeveloper 11.1.3.

    Kind regards
    Prasad.

    Hi, I just want to assure you - have you installed the ADF MObile Client extension yet? Visit JDev-Help-Check for updates official Oracle Extensions and updates and find the Extension of Oracle ADF MObile Client in the list. Check it out, download it and then restart JDev. It seems that the extension is not installed, is not able to load J2ME libraries.

    If you downloaded the extension already, please go to properties-libraries and classpath of the project and then see if the sample application makes reference to third party libraries, for example something RIM. If so, please check the path to the library.

    Once you have installed the extension, you can also access the customer Mobile ADF Developer's guide - it contains all the documentation around what you need to install first. Please take a look and see what you install - at the very least, you need to install BlackBerry JDE if you want to deploy for BlackBerry and Windows Mobile Emulator, if you want to test the application on Windows Mobile. Finally, if you need to synchronize the data, then you must also install Oracle Database Server Lite for MObile.

    Thank you

    Joe Huang

  • Blackberry problems with javax.microedition.HttpConnection

    Hi all

    I am currently working on an application that connects to the Web service using javax.microedition.io.HttpConnection;

    I want to do several generations for the request of 4.7, 5.0 and 6.0. I have a very big problem because as I've debugged since now the request to the server is only to send the version 4.7 and I have not found a solution to work for other versions. The code is the same, but I have an InterruptedIOException with the message that LocalConnection expired after ~ 10000. I had this error on the 9800 Simulator tests.

    How it is possible to work on 4.7 but on other versions of crash?

    Have you had similar problems? Shoud I code to help with this? This is a very critical situation.

    Kind regards

    Bogdan

    Try to use '; deviceside = true' to your URL. Also, take a look at Peter in sticky for many useful code to develop applications of HttpConnection.

  • AllDAY using javax.microedition.pim.Event events calendar

    Hi all

    I try to save an event all day in the database using javax.microedition.pim.Event of PIM data. According to the Docs, I add an event that has a start time of 00:00:00:000 (defined by DateTimeUtilities.zeroCalendarTime) and a set of end for the next time, once again, the 00:00:00:000 value.

    The event shows correctly in the application calendar of BB, but it is not recognized as an Allday event.

    It is: that I need TO use the BlackBerryEvent interface to get the calendar to acknowledge an event like allday or I can do this with just using the event interface?

    Another issue: State of the Docs for the event interface:

    ------------------------------

    RIM implementation notes

    The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

    ------------------------------

    Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

    Kind regards

    Carsten

    PS: Need to add that I use 4.5 JDE and the 8820 4.5 Simulator

    You must use BlackBerryEvent to specify a appointent all day.

    DerCarstenUK wrote:

    Hi all

    Another issue: State of the Docs for the event interface:

    ------------------------------

    RIM implementation notes

    The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

    ------------------------------

    Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

  • new javax.microedition.lcdui.Graphics () error (not public are accessible)

    Hey. Just do some drawing and had a compilation error

    Graphics is not public in javax.microedition.lcdui.Graphics; are not accessible from the outer packaging

    javax.microedition.lcdui.Graphics gr = new javax.microedition.lcdui.Graphics ();   //

    gr.drawRect (100,50,200,100);

    In the online JDE 4.7 QAnywhere, the class is public not private. There's no docs for the Builder. I have tried providing an arg but no dice. I use this class of lcdui because other graphics can't shoot a picture object.

    Ideas appreciated, has soon

    J

    Hey-learned that the only way to get an instance of the javax.microedition.lcdui.Graphics object is to use

    myGraphics = javax.microedition.lcdui.Image.getGraphics)

    So that's it.

    JD

  • How to set up a Multicast UDP connection? I get the following error: javax.microedition.io.ConnectionNotFoundException

    I need build a Multicas UDP connection, with the following connection string: multicast://224.2.3.4:8888,.
    udpMulticastConnection = (UDPMulticastConnection) Connector.open (" " "multicast://224.2.3.4:8888");

    but I'm javax.microedition.io.ConnectionNotFoundException.

    I read in the doc of the api, I have made a UDPDatagramConnection. I wore the UDPDatagramConnection but the udpMulticast still not do.

    Can someone help me? Please

    Thank you.

    Some useful links:

    https://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/package-summary.html

    UDPDatagramConnection (Java (TM) ME generic connection Framework, Version 8 (final JSR360))

    BNF multicast protocol

    Java (TM) ME generic connection Framework, Version 8 (final version of JSR360)

    http://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/ConnectionNotFoundException.html

    https://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/package-summary.html

    Hello!

    Unfortunately, multicast is not supported by Java ME on RPi. Looks like it still takes much effort to patch raspbian OS itself to support so that we did not continue to support me. Sorry

    Kind regards

    Andrey

  • javax.microedition.io.file.FileConnection JavaDoc?

    I'm looking for the JavaDoc on the next class: javax.microedition.io.file.FileConnection

    I searched the JavaDoc for the GCF at the link below.  There is no results for FileConnection, or javax.microedition.io.file else.

    Generic connection framework, Version 8 (b75)

    Based on this link for the docs to Blackberry, the javax.microedition.io.file.FileConnection used to be generated with the JavaDocs (there are maybe, but always seems the JavaDoc has a bug)

    FileConnection (BlackBerry JDE API Reference 7.1.0)

    If you know where the CURRENT package and class are documented, I would be grateful for the tip!

    Brent S

    Hi Brent,

    In fact, that javadoc FileConnection on the blackberry site should be current. This is because is JSR 75 FileConnection and JSR 75 had only one version, 1.00. This JSR is not owned by Oracle so you see it's javadoc on the Oracle website. However in regards to any JSR you can download it here https://jcp.org/en/jsr/detail?id=75

    One more comment: GCF as he is of his name is a framework. It outlines the principles of the Organization of generic access to the connections so that provides some specific protocols. But this is not the end: it is designed, the other parts of the Java stack would be connect by providing specific features of protocols. And actually, there are these parts there. For example JSR75 FileConnection or Bluetooth JSR82

    Kind regards

    Andrey

  • SQL * Loader vs external tables to a single file with several types of records (intercalated)

    I have a file of sample data (we will have the a 'true' at a later date and put in day after that) which includes a header, footer, and 5 types of records, that have different columns and lengths, noticed by the first two characters. The different types of records are not all together. On the contrary, some (in particular, two of these types in this example) are intertwined. I am currently working on a SQL * Loader configuration file when it was suggested that I use external tables. I know very little of either, then I would ask what is the best to use.

    Scott@orcl12c > host type test.dat

    header line

    AB, 123, efg

    CD, hij, 456

    Scott@orcl12c > type host test.ctl

    options (Skip = 1)

    load data

    in the ab table truncate where table_name = 'ab'

    fields ended by ',' trailing nullcols

    (table_name filler position (1), col1, col2)

    in the cd table add where table_name = 'cd'

    fields ended by ',' trailing nullcols

    (table_name filler position (1), col3, col4)

    Scott@orcl12c > create table ab

    2 (col1 number,

    3 col2 varchar2 (8))

    4.

    Table created.

    Scott@orcl12c > insert into ab values (1, 'old data')

    2.

    1 line of creation.

    Scott@orcl12c > create table cd

    2 (col3 varchar2 (8))

    3 col4 number)

    4.

    Table created.

    Scott@orcl12c > insert into cd values ("old data", 1).

    2.

    1 line of creation.

    Scott@orcl12c > commit

    2.

    Validation complete.

    Scott@orcl12c > host sqlldr scott/tiger control = test.ctl data = test.dat log = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 27 13:11:47 2014

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 2

    Table AB:

    1 row loaded successfully.

    Table D:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > select * AB

    2.

    COL1 COL2

    ---------- --------

    EFG 123

    1 selected line.

    Scott@orcl12c > select * from cd

    2.

    COL3 COL4

    -------- ----------

    old data 1

    hij 456

    2 selected lines.

  • Object type and a Type of record

    What is the difference between the type and the type of recording?
    TYPE OBJ_TYP IS OBJECT (
    ENAME VARCHAR2(30),
    EAGE NUMBER(2),
    ESAL NUMBER
    )
    
    TYPE REC_TYP IS RECORD (
    ENAME VARCHAR2(30),
    EAGE NUMBER(2),
    ESAL NUMBER
    )
    The two even looks like me and just I see the difference in keyword. Is there a functional difference to hide?

    PLS, excuse my stupidity.

    Sunny

    The first is a type of object oriented class. It can have custom constructors, methods and can be used as a type of SQL data in the SQL engine - even as the data type for a SQL column in a table SQL.

    This one is a pure (and clear) record structure - similar to the structure record in Pascal/Ada, or as the struct in C/C++. It can only be used in the engine of PL.

  • Media Center not display or record one channel. Signal OK

    I have an ATI tuner card in a desktop under Vista Home Premium PC.  When I run Setup of Media Center, he finds all the channels.  When I select in this case channel 56.1 (or 56.2 and 56.3) I get nothing.  As a result, I can't save this channel either.  I'm in the Los Angeles area, with a roof antenna, the signal strength is not the problem.

    If I use the ATI application, the channel comes very well and records too.

    I have a laptop running Windows 7.  I just bought a key USB from Hauppauge.  Windows Media Center detects all channels, and on this configuration, I can view 56.1 etc..  BUT, when I select a program to record from the EPG, it not save and give an error message that there is no signal.  If I look at the same channel when a record event program starts, the screen goes black, and the level of the signal LED on the USB turns off.

    As with the other computer, the application supplied with the device works very well on the channel in question.

    On both computers, I tried to manually add the channel (the physical channel is 32), no luck.  All the other channels, with the exception of the 56 works very well.

    My conclusion is that the electronic Program Guide to be a mistake for this channel.  As it does on two different computers with two different tuners, two different antennas and all other channels work fine, I don't see how it could be a hardware problem.

    For any help or suggestions would be most appreciated!

    Hello

     
     
    Method 1:
    You can also create a new user account with administrative privileges and try to save channel in Windows Media Center. If it works fine, it means that the other user account is damaged.
    Create a user account
    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account
    Access the link below and follow the steps to fix a corrupted user profile: http://windows.microsoft.com/en-US/Windows-vista/Fix-a-corrupted-user-profile

    Method 2:
    If the problem persists, you can try the steps and check:
    a. go to settings-guide-add missing channels.
    b. type in right channel # (like 8.1).
    c. then put in the right frequency for the station live.
    d. now, you will have 2 channels in guide for 8.1 lists. Right-click on the new guide that lists you just create and go change the channel-edit lists.
    e. can change the list source to the channel that you have problems with. Then go to tv setting-tv digital signal signal strength.
    f. then UN check channel which did not properly record to remove it from the guide.

    You can access the link below and follow the steps to solve the problem with the recording on your Media center.
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-recording-TV-on-your-computer
  • In Windows Media Center, one of my recorded tv programs blocking WMC, when you place the cursor on the title.

    WMC doesn't crash on any other recorded program tv and all the other game of TV very well.

    Is this perhaps a corupt file?  Where can I find this fmanually file so I can remove it?

    Thanks for your attention!

    Hi ClaytonNagle,

    Thank you for writing to Microsoft Communities. Before you start the troubleshooting steps, I need the following information:

    ·         Did you do changes on the computer before the show?

    ·         What version of the operating system is installed on the computer?

    Follow the steps in the article, and check.

    Solve problems with a Windows Media Center Extender device

    Let us know if you need more assistance. We will be happy to help you.

    Thank you.

Maybe you are looking for

  • HP DeskJet 3630: I can't get my printer to connect to wifi

    I set up my printer and I tried on my phone to connect to the wifi and it wouldn't work so I unplugged and moved closer to the wifi. Now wifi has the word "setup" that he disappeared and only WiFi it is requiring a password I don't know

  • Lenovo x 240 HARD drive upgrade to SSD

    Hi all Need some advice. I recently bought a Lenovo x 240 1 TB HDD + 16 GB mSATA. I did some research and found that the 1 TB is a 5400 RPM one. I find that the Setup is a bit disappointing. When I up my laptop when watching videos, even gently, I no

  • System Restore will not work for any date and computer says that it is running in auto mode.

    I have a 30 GB master and slave of 160 GB. 26/03/11 I copied a large file of 11 GB of the master to the slave because I received alerts that the disc was or almost. After you have copied from C to D, I deleted the C file and the missing file of the t

  • Log in as system administrator

    I have several nagging things McAfee can't sweep. They suggest that I "log on as an administrator" and see if I can delete these files.  I don't know how to log on as an administrator. Can someone tell me how? I have Windows Vista.

  • Windows Go 431 folder too big...

    Hi, I have a computer that is running windows 7 factory that the hard drive is too big, so I checked all the files on the hard drive and the windows folder is 413 gb... why this might be? I always run clean disc ups most of the people here are groani