Android: Improve version comparisons and obtain current version statically