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

html - Cut text on left side inside button while centering -

java - Last square of 8x8 grid not drawn, using two nested FOR loops -

What design pattern is this code in Javascript? -