Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-993] Ti.Media.isCameraSupported not implemented on Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:03.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsmodule_media, parity, qe-testadded
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T02:41:05.000+0000
Updated2012-02-14T23:29:03.000+0000

Description

self-explanatory

Comments

  1. Dawson Toth 2011-05-06

    One of our co-dev has noticed the absence of this property.
  2. Bill Dawson 2012-01-30

    Testing Notes

    Test this app on a Kindle Fire (or another device with no camera), and then on any device with a camera. The alert should accurately tell you whether a camera is supported. Note that setting hw.camera=no in an emulator will not be sufficient to test this (see http://groups.google.com/group/android-developers/browse_thread/thread/9eaf5f0edc75ed62?pli=1 ). So use hardware devices only.
       Titanium.UI.setBackgroundColor('#000');
       var win = Titanium.UI.createWindow({  
           title:'Test',
           backgroundColor:'#000',
       	exitOnClose: true
       });
       
       alert("Is camera supported? " + Ti.Media.isCameraSupported);
       
       win.open();
       
  3. Bill Dawson 2012-01-30

    Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1300
  4. Natalie Huynh 2012-02-03

    Tested with Kindle Fire and Nexus S 2.3.6 with 1.9.0.v20120202210134

JSON Source