android - ADT doesn't warn me about calling functions from the wrong API level -


i have android project minsdk 8 , targetsdk 17. used call function introduced in api level 9 (camera.getnumberofcameras()). adt doesn't seem mind , compiles fine no warnings. set targetsdk 8 well, , still builds fine no warnings. warn me if code isn't going run on sdk claim support. there way this?

just change severity of newapi in android lint preferences error.

properties --> android lint preferences --> newapi --> error in severity box

make sure click refresh icon in lint warnings windows after every rebuild.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -