×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    28

    Can't take a photo

    When I run the following codes, I see an error message: can't find variable: com
    What do I do? Thank you very much for your reply!

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

    <script type="text/javascript" src="platformservices.js" charset= "utf-8" />
    <script language="javascript">

    var so = null;
    try
    { so = com.nokia.device.load("", "com.nokia.device.camera", ""); }
    catch(e)
    { alert("Error loading camera : " + e);
    return; }

    function onCameraAppLoaded( transId, errorCode, result )
    { if (errorCode == 0)
    alert("Pictures taken : \n " + result.join("\n") ); }

    function onCameraError( error )
    { alert("Camera Error : " + error.message ); }

    var tid = so.startCamera(onCameraAppLoaded, onCameraError);
    </script>

  2. #2
    Registered User
    Join Date
    Jan 2012
    Posts
    28

    Re: Can't take a photo

    the problem is solved.

    please delete this post.

    sorry.
    Last edited by bg1fpx; 2012-02-19 at 09:01.

Similar Threads

  1. Take a photo in MWS
    By elegance66 in forum Mobile Web Server
    Replies: 7
    Last Post: 2008-09-30, 08:47
  2. Take a photo with N70
    By asmobease in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2006-11-26, 18:39
  3. About photo
    By yayawe in forum Symbian
    Replies: 1
    Last Post: 2004-01-05, 04:57
  4. about photo
    By yayawe in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-01-03, 15:02
  5. Replies: 0
    Last Post: 2003-05-02, 12:56

Posting Permissions

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