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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -