You Are Here:

Community: Developer Discussion Boards

#1 Old how to check whether a handset has a camera or not - 2007-04-02, 20:12

Join Date: Aug 2006
Posts: 20
kartikbansal
Offline
Registered User
hi..

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..

thnx
kartik..
Reply With Quote

#2 Old Re: how to check whether a handset has a camera or not - 2007-04-02, 22:24

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
That is the correct property to check.
Also Manager.createPlayer() throws MediaException if a Player cannot be created for the given locator.

Hartti
Reply With Quote

#3 Old Re: how to check whether a handset has a camera or not - 2007-04-02, 23:55

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
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.

Daniel
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Nokia N-Series Complete Model Line-Up Dopod General Discussion 6 2008-07-22 21:16
Camera API on Symbian 9.1 (Nokia N80) srigans1 Symbian Media (Graphics & Sounds) 4 2007-10-20 06:31
How to check if Camera is reserved... Utk General Symbian C++ 1 2006-09-07 16:13
Any error log file at the handset to check when application crashes? symbian_ravi General Symbian C++ 8 2006-02-21 08:43
Check if Handset is Connected funworld_0815 Mobile Java General 0 2002-07-04 11:50

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ