[android-developers] setAutoExposureLock method is not found in ICS

2013-03-06 Thread Qianqian Fang
hi list I am working on a camera program where I want to call setAutoExposureLock() is supported. To make this backward compatible, I used some sample code I found online to check the presence of this method first. The code snippet is below: ... try{ Class c =

Re: [android-developers] setAutoExposureLock method is not found in ICS

2013-03-06 Thread Mark Murphy
Why not set your build target to API Level 14 and just call the method, wrapping your calls in a Build.VERSION.SDK_INT check? Why are you messing around with reflection games? On Wed, Mar 6, 2013 at 7:21 PM, Qianqian Fang fan...@gmail.com wrote: hi list I am working on a camera program where I