Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009

    Exclamation Failed to get image from camera - N95


    I have a N95 and im using WRT to get an image from my camera, but when i execute the code, i got an error.


    // tenta pegar camera
    var so = null;
    // Lets first create camera object.
    try {
    	so = com.nokia.device.load("", "com.nokia.device.camera", "");
    } catch (e) {
    	alert("Error loading camera : " + e);
    // Lets try to launch camera application.
    var tid = so.startCamera(onCameraAppLoaded, onCameraError);


    Can't find variable: com

  2. #2
    Registered User
    Join Date
    Mar 2009

    Re: Failed to get image from camera - N95

    I tested on emulator and i got the same error message.

  3. #3
    Super Contributor
    Join Date
    May 2008
    Helsinki, Finland

    Re: Failed to get image from camera - N95

    Hello there, prchakal!

    Basically you have done all the correct steps, but what is missing is the support for Platform Services 2.0 and thus access to the onboard camera on that specific phone model, N95 (at the time of writing).

    (Generic test for the camera and how to do it best way, here: http://wiki.forum.nokia.com/index.ph...feature_in_WRT)

    This is directly from the release notes of the Platform Services 2.0 API:

    "Target Devices

    Full feature set supported on

    N97 (V 20.0.019 and later)
    N97 Mini (V 10.0.020 and later)

    Partially supported on other WRT 1.1 compatible devices.
    furthermore related to the last line on previous;

    S60 platform support

    The APIs are fully supported in the Nokia N97 mobile computer (firmware release V20.0.019 or later) and Nokia N97 mini (firmware release V 10.0.020 or later). Full support is expected on other devices by firmware updates.

    Until they receive firmware updates, devices that implement the WRT 1.1 API will not support the new asynchronous APIs for Calendar, Messaging, and Landmarks. PS 1.0 APIs should be used on these devices.

    See the release notes for more details. Similar, partial support for the APIs is provided in the emulator from the S60 5th Edition SDK for Symbian OS.


    With Nokia Platform Services 2.0, you can write WRT widgets that access a device’s camera, GPS unit, sensors, contacts records, calendar entries, messages, landmarks, media files, log entries, and system status information.
    And what comes for the emulator environment,

    To use Nokia Platform Services 2.0, include the JavaScript library in your widget or install the JavaScript library into the emulator supplied in the S60 5th Edition SDK for Symbian OS or Nokia N97 SDK for Symbian OS and any target devices.
    Download page is here: http://www.forum.nokia.com/info/sw.n..._One_SDKs.html

    Best Regards,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330

Similar Threads

  1. N95 camera distortion ?
    By serg3d in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2008-12-02, 13:44
  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. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08
  4. how to save image taken by camera with bitmap
    By winsys in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-10-10, 05:46
  5. Camera Image Quality
    By ronald29 in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2006-07-21, 10: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