×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    7

    Question Extreme Problems accessing the Camera by an Midlet on the NOKIA 6230

    Hi

    I really have a serious problem with the nokia 6230. I cannot access the Camera by MIDP, everything i try fails

    Heres the code:

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

    System.out.println("player erzeugen");
    player = Manager.createPlayer("capture://video");
    System.out.println("player erzeugt");
    player.realize();
    player.prefetch();
    System.out.println("prefetch");
    VideoControl vc = (VideoControl)player.getControl("VideoControl");
    System.out.println("videocontroller");

    i_videoitem = (Item)vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,null);
    i_videoitem.setLayout(Item.LAYOUT_CENTER|Item.LAYOUT_VCENTER|Item.LAYOUT_2);
    i_videoitem.addCommand(CMD_SHOOT);
    i_videoitem.setItemCommandListener(this);

    append(i_videoitem);
    append(new Spacer(getWidth(),1));
    addCommand(CMD_BACK);


    player.start();


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

    My code works on the following devices / emulators:

    Siemens S65,
    WTK 2.2 emulator
    Nokia 6230 Emulator (0.2 beta)

    I get the livepicture of the camera as an formitem and i can take screenshots.
    But it wont work on the (real) Nokia 6230 and the Nokia SDK 2.2 emulator.

    I only get an screen wich displays "empty" where normally the Videoitem is displayed.

    Its not just my application wich wont work on the 6230, every application i tried wich uses the camera wont work. The Snapper from Sun wont work as the MMA Example from the WTK - even an Exampleapplication from Nokia wont work - most of the time the programs crash when i try to execute them.

    Please, if you have any idea what this problem can be - please give me an answer! If you know other Midlets wich use the camera - please give me the url where i can get them. Maybe i can find an working application - this would be a great step forward for me because at the moment i dont know if the 6230 is able to access the camera by j2me... :/

    I really begin hating my cellphones

    Thanks a lot in advance

    n3po

  2. #2
    Registered User
    Join Date
    Nov 2004
    Posts
    5
    Reference thread http://discussion.forum.nokia.com/fo...ght=%2A6230%2A

    Pretty much, anything you want to do in J2ME on the 6230,
    you can't. Nokia did not provide the APIs.

    Robert

Posting Permissions

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