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
Post a Comment