I am trying to compare android version numbers in my code. If any version is less than 4.1 I want that version number.
Should I use comparison on strings directly as below?
Examples:
"4.0.3" < "4.1" # should return.
"5.0" < "4.1" # should not return.