Similar questions have been asked, but the provided answers did not really help me.
Say I'm using a deprecated method and my minApiLevel is X. The suggested replacement of the deprecated method has api level Y.
What should I do when Y > X (and I can't or don't want to increase X)? As a rule of thumb (if there's one), can I safely ignore this (meaning it will never work unexpectedly on Android versions where the method's deprecated), or should I rather implement both variants and put them in an if-else depending on the SDK version? (Assuming I'm satisfied with the functionality of the old deprecated method.)