×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    28

    Question Nokia 6212, I just need an explication about camera.

    Hi,

    I'm developing an J2ME application witch use the Nokia 6212 camera. And I've read that it's impossible to use flash because the Nokia 6212 doesn't have amms API.
    My questions are :
    - Nokia 6212 have a flash witch it's work when I took a picture with the Nokia photo application, why I can't use it.
    - The Nokia 6212 SDK allow me to import "javax.microedition.amms.control.camera.FlashControl"
    and this code return me a null flashControl all the time.

    Code:
    FlashControl flashControl = (FlashControl) player.getControl("FlashControl");
    if (flashControl == null) {
           flashControl = (FlashControl) player.getControl("javax.microedition.amms.control.camera.FlashControl");
    }
    if (flashControl == null) {
           discardPlayer();
           message1 = "Unsupported :";
           message2 = "Can't get FLASH control";
    }else{
           flashControl.setMode(flashControl.AUTO);
    }
    You will say it's because it's not supported but why they allow me to try it if it's not supported.

    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Nokia 6212, I just need an explication about camera.

    Quote Originally Posted by loicmormont View Post
    - Nokia 6212 have a flash witch it's work when I took a picture with the Nokia photo application, why I can't use it.
    For the simple, if unhelpful reason: there is no API for using it.

    Quote Originally Posted by loicmormont View Post
    - The Nokia 6212 SDK allow me to import "javax.microedition.amms.control.camera.FlashControl" and this code return me a null flashControl all the time.

    You will say it's because it's not supported but why they allow me to try it if it's not supported.
    The 6212 does support AMS API. But it only supports the 3D audio and music components. If you ask for any other kind of control, the request will fail.

    Graham.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    28

    Re: Nokia 6212, I just need an explication about camera.

    Thank you for your answer Graham.
    I will try to manage my work with this information.

Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  2. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×