Answer the question
In order to leave comments, you need to log in
How to make the application work with all devices?
There is a getCurrectHour() method, but it has been replaced with getHour() in newer versions. How to make the first one work on the old ones and the second one on the new ones?
Answer the question
In order to leave comments, you need to log in
We poke towards Build.VERSION :
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
} else {
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question