title: Deprecated code works safely on all Android versions and devices?
body: <p>I am working on a huge android project with tons of classes. Until now we are compiling with Android 3.2 and giving support to Android 2.3.</p>
  
  <p>Now I am testing to compile with Android 5.1.1, but still giving support to Android 2.3. My surprise was that a lot of code is deprecated now... (<code>getWith(), getDrawable(), setBackgroundDrawable(), HttpRequest, ActivityGroup</code>, etc...). Those deprecated functions does not give compile error, but it gives deprecated warning.</p>
  
  <p>I know that I can duplicate code and make special calls to deprecated methods if SDK_INT is lower than XX and calls to new methods if SDK_INT is newer than XX, but this is a huge patch, that will need a lot of duplicate code in a lot of functions in a ton of classes and packages, so, if it is possible, we prefeer to wait until we don't need to give support to oldest versions of android. It means to continue using deprecated methods until for example we only need to give support from 4.4, that will means munch less duplicated code and functions will be needed.</p>
  
  <p><strong>The question is:</strong> If i compile with Android 5.1.1 but still use those deprecated functions, this huge project will continue to work on all devices (from 2.3 to 5.1.1)? Now it's working compiling with Android 3.2. </p>
  
  <p>I understand that Deprecated means that they are likely to be removed in a future version of the platform and so you should begin looking at replacing their use in your code, but if it is still supported and does not give a compile error, it will work well as until now. It is what I understand of deprecation. <strong>It is right?</strong></p>
  
  <p>Thanks.</p>