Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2006

    how to check whether a handset has a camera or not


    plz tell me how to check whether a particular handset has a camera or not..

    i am check the system property "supports.video.capture".. however this doesnt seen to work on emulators..(not tried on actual devices)..

    it gives me false for all types of devices, whether it be S40, S60, S80.. (when i do Manager.createPlayer("video://caputure") for S60 simulator it does start the camera..)

    plz lemme know if i am checking the correct property or is there some other way of checking the same..


  2. #2
    Super Contributor
    Join Date
    Apr 2003
    USA, CA

    Re: how to check whether a handset has a camera or not

    That is the correct property to check.
    Also Manager.createPlayer() throws MediaException if a Player cannot be created for the given locator.


  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2005

    Re: how to check whether a handset has a camera or not

    Hartti's suggestion is good, and here goes another one: check "video.snapshot.encodings" property. If it returns null, no picture-taking is support, so even if the device has a camera, it's not available to J2ME apps.

    If it does return some formats, check "supports.video.capture" to see if the implementation let's you capture videos too, not only snapshots.


Similar Threads

  1. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  2. Camera API on Symbian 9.1 (Nokia N80)
    By srigans1 in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-10-20, 05:31
  3. How to check if Camera is reserved...
    By Utk in forum Symbian
    Replies: 1
    Last Post: 2006-09-07, 15:13
  4. Replies: 8
    Last Post: 2006-02-21, 07:43
  5. Check if Handset is Connected
    By funworld_0815 in forum Mobile Java General
    Replies: 0
    Last Post: 2002-07-04, 10:50

Posting Permissions

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