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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -