title: Check Android build project target API level at runtime
body: <p>I have an application, and it behaves differently when I run it on API 18 or 19. This is not a problem, and I know why does it happen. </p>
  
  <p>However, I want to write one code that will deal with both the versions.</p>
  
  <p>Is there any way to get in runtime which API my application was built with? Specifically, I would like to get 18 or 19 if I build my application with these APIs.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>It seems to be a duplicate question. I thought that the BUILD_VERSION is something else, because, when I compiled both the versions to API 18 and 19, and print the version, I receive 18. It looks like another problem (although I specified API 19, it is compiled according to 18).</p>
  
  <p>I found that the problem was in the emulator configurations.</p>