×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Angry Camera API stopped working on N95 after MIDlet was signed

    My unsigned MIDlet used to work fine on N95 with Camera APIs:

    mPlayer = Manager.createPlayer("capture://video");
    mPlayer.realize();
    mVideoControl.getSnapshot("encoding=jpeg&width=320&height=240");

    It prompted me to allow the use of camera but it started the camera and I was able to capture the photo in my J2ME application.

    After java verified certified my application, it stopped working. Now when I try to start the camera using the above code, it does not start on N95.

    Thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Camera API stopped working on N95 after MIDlet was signed

    Hello sanjk0604,

    After java verified certified my application, it stopped working. Now when I try to start the camera using the above code, it does not start on N95.
    Please elaborate more: do you mean that when you try to launch your MIDlet, it doesn't start at all? If so, please view the following Known Issue article on Forum Nokia Wiki:

    http://wiki.forum.nokia.com/index.ph...Edition_phones

    Regards,
    r2j7

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Re: Camera API stopped working on N95 after MIDlet was signed

    MIDlet starts. All the other functionality works fine....except when I try to start the Camera using CreatePlayer nothing happens.

    Thanks

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Re: Camera API stopped working on N95 after MIDlet was signed

    I think I figured out the problem....

    When I added MIDlet-Permissions: javax.microedition.media.control.VideoControl.getSnapshot

    it started working. However it still prompts me before starting camera even though my .jad file has a valid Java Verified signature. Could it be because my manifest file has MicroEdition-Configuration: CLDC-1.0?

    Thanks

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

    Re: Camera API stopped working on N95 after MIDlet was signed

    You need to manually change the API access settings for multimedia to always allowed

    Here are the N95 access settings
    http://wiki.forum.nokia.com/index.ph...2C_S60_3rd_FP1

    and here are the instructions for changing the settings (they are a little hidden on S60 3rd Edition FP1 phones
    http://wiki.forum.nokia.com/index.ph..._on_S60_phones

    Hartti

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Re: Camera API stopped working on N95 after MIDlet was signed

    Thanks. That worked. However it is too complicated for the end user. Is there a way to make these changes during app installation?

    Also, it is still prompting me when I do a platform call to start the default browser. Do I need operator signature to supress that prompt?

    Thanks

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

    Re: Camera API stopped working on N95 after MIDlet was signed

    "Is there a way to make these changes during app installation?"

    Unfortunately not.

    "Also, it is still prompting me when I do a platform call to start the default browser. Do I need operator signature to supress that prompt?"

    Hmmm... Have you tried changing the network settings to always allowed too?

    Hartti

  8. #8
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Re: Camera API stopped working on N95 after MIDlet was signed

    Hmmm... Have you tried changing the network settings to always allowed too?

    >>>Yes - Network setting is "Always allowed". When I open HTTP connection using J2ME connection object I don't get any prompt. But when I open a phone browser using PlatformRequest I still get prompted.

    Thanks

Similar Threads

  1. Using Camera API requires too much memory
    By tote_b5 in forum Symbian Media (Closed)
    Replies: 18
    Last Post: 2008-07-31, 16:21
  2. jsr234 camera getSnapShot() on Nokia N95
    By garyjamessilva in forum Mobile Java Media (Graphics & Sounds)
    Replies: 21
    Last Post: 2008-07-02, 15:14
  3. Replies: 9
    Last Post: 2008-03-06, 18:37
  4. jsr135 highest supported camera resolutions for getSnapShot() on N95
    By garyjamessilva in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-05-30, 21:14
  5. BUG IN 7650 Camera API???
    By jjclose in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-09-28, 16:43

Posting Permissions

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