×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    4

    Nokia code sample not working

    Hello,

    I am using the S40 5th ed FP1 LITE SDK. I copy pasted this sample code and it did not work: http://wiki.forum.nokia.com/index.ph...ots_in_Java_ME


    I debugged it and it is failing at this line:

    Code:
    player = Manager.createPlayer("capture://video");
    The code immediately drops to this exception capture:

    Code:
    catch (MediaException me) {}
    Can anyone help figure out what's wrong?

    Thanks!

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Nokia code sample not working

    You might not be able to capture video in the emulator. Try a real phone.

    Graham.

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    4

    Re: Nokia code sample not working

    thanks for your reply. unfortunately i don't have an S40 device. furthermore, if i open by emulator by itself, i can use its camera and take a picture as well. so that much i know is working. i don't know why this code is not working though.

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

    Re: Nokia code sample not working

    Hello kevinpw,

    AFAIK no Nokia SDK emulators can be used for taking pictures.

    Alternatively, you could try Forum Nokia's Remote Device Access: http://www.forum.nokia.com/Technolog...Device_Access/

    The Remote Device Access enables accessing to real Symbian devices online via Internet, i.e. those work ok for your code. The use of RDA is free, only Forum Nokia registration for login is required.

    Regards,
    r2j7
    Last edited by r2j7; 2010-02-20 at 18:52.
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    69

    Re: Nokia code sample not working

    Hii,

    some of the series 40 doesn't support 'capture://video' protocol. I face this problem on real device.
    then i tried
    Code:
    player = Manager.createPlayer("capture://image");
    which worked for me.

    try with 'capture://image'


    Check this post also



    hope this will help u

    Nikesh~
    Enthusiastic
    Last edited by Enthusiastic; 2010-02-22 at 05:58.

Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58

Posting Permissions

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