Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor chan_fookmun's Avatar
    Join Date
    Jul 2005
    Posts
    67
    is it possible to invoke the FM radio in the java application assuming the mobile device can support it?

  2. #2
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    I could be wrong, but don't think there's any phone with a built-in FM radio that has a Java API available for doing anything with the FM radio.

  3. #3
    Regular Contributor knorring's Avatar
    Join Date
    Apr 2003
    Posts
    62
    In fact, there seems to be a way of accessing the radio from a Java application.

    In version 1.1 of the Mobile Media API, support for a radio locator was added.

    A section from the description of the javax.microedition.media.Manager class in the MMAPI 1.1 Javadoc:


    3. Locators for Radio Tuner

    To create a Player to tune into a radio program, the following locator syntax is used:

    "capture://radio" [ "?" tuner_params ]


    where:

    tuner_params = tuner_param *( "&" tuner_param )
    tuner_param = "f=" freq /
    "mod=" modulation /
    "st=" stereo_mode /
    "id=" program_id /
    "preset=" preset
    freq = megahertz /
    kilohertz /
    hertz
    megahertz = pos_integer "M" /
    pos_integer "." pos_integer "M"
    kilohertz = pos_integer "k" /
    pos_integer "." pos_integer "k"
    hertz = pos_integer
    modulation = "fm" / "am"
    stereo_mode = "mono" / "stereo" / "auto"
    program_id = alpanumeric ; identifies an FM channel by its
    program service name (PS) delivered
    via Radio Data System (RDS)**.
    preset = pos_integer ; predefined tuning number


    ** The RDS specification is available from http://bsonline.techindex.co.uk, id BSEN 50067:1998.

    Examples:

    capture://radio?f=91.9M&st=auto
    (91.9 MHz with automatic stereo setting)
    capture://radio?f=558k&mod=am
    (558 kHz with amplitude modulation)
    capture://radio?id=yleq
    (FM channel that has "yleq" as its program service name
    delivered via Radia Data System)


    While testing the media capabilities of different devices using Manager.getSupportedProtocols() and Manager.getSupportedContentTypes(), I have noticed that at least the 6230i should be able to use radio as an audio input using capture://radio. Has anyone tested if the radio functionality really works on the 6230i?
    Last edited by knorring; 2005-08-16 at 15:54.

  4. #4
    Registered User q3dm8's Avatar
    Join Date
    Mar 2007
    Posts
    1
    I think this mobile have some errors in firmware or something..
    FM-tuner in 6230i doesn't work..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved