title: How to get rid of code deprecation?
body: <p>I am working on an Android project in Android Studio which supports from version 8 to 19. I want to use this method getBlockSizeLong(). Now if I use getBlockSize(), I see the deprecated cancellation line as you can see in the attached picture. If I use getBlockSizeLong(), I get error saying this method cannot be used for version 8! Even If I use a version check, the cancellation line will still persist. Thats ugly coding. How should I deal now?</p>
  
  <p><img src="https://i.stack.imgur.com/lR2n2.png" alt="enter image description here"></p>