×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    33

    Unhappy Camera MIDlet is not working with Nokia 3110c

    Hi,
    I have made a camera midlet which is not working with my phone(Nokia 3110c). But it is working well with Sony Ericsson K550i and Nokia N73. I am using NetBeans IDE 6.1 and jdk 1.6. In my phone, vedio screen is opening, but I can't captute the image. I suspect that there is a problem between my phone(3110c) and getSnapshot(). I call the capture() within a thread. Do I need any kind of extra sdk to install in my phone? Or any kind of change in my code? Thanks in advance.

    Regards,
    Prithwi

    ////////// partial source code /////////////////
    public void showCamera() {
    try {
    mPlayer = Manager.createPlayer("capture://video");
    mPlayer.realize();

    mVideoControl = (VideoControl)mPlayer.getControl("VideoControl");




    Form form = new Form("Camera form");
    Item item = (Item)mVideoControl.initDisplayMode(
    GUIControl.USE_GUI_PRIMITIVE, null);
    form.append(item);
    form.addCommand(mBackCommand);
    form.addCommand(mCaptureCommand);
    form.setCommandListener(this);
    mDisplay.setCurrent(form);


    mPlayer.start();
    }
    catch (Exception ioe) { }
    }



    public void capture() {
    try {
    Form f = new Form("new");
    byte[] raw = mVideoControl.getSnapshot(null);
    Image image = Image.createImage(raw, 0, raw.length);

    f.append(image);
    f.addCommand(hi);
    f.setCommandListener(this);

    mDisplay.setCurrent(f);

    mPlayer.close();
    mPlayer = null;
    mVideoControl = null;
    }
    catch (Exception me) { }
    }
    ////////////////////// //////////////////////
    Last edited by prithwi; 2009-01-11 at 03:11.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Camera MIDlet is not working with Nokia 3110c

    you have to use capture locator image instead on video for snapshots on Series 40 phones.

    http://library.forum.nokia.com/topic...A70BE8AF1.html

    Hartti

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    33

    Re: Camera MIDlet is not working with Nokia 3110c

    thanks Hartti, I've succeeded.

Similar Threads

  1. Python S60 Emulator
    By NAYSAMBO in forum Symbian
    Replies: 25
    Last Post: 2009-04-08, 10:22

Posting Permissions

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