I want to check within my app whether the device runs the latest version of Android.
Is there a way to do that?
Yes, I could update my app once a year, but I would rather solve that problem technically.
Comment from Gabe Sechan:
Unless you want to create a webservice that publishes the version number of the latest Android and query it, no. There's no way to no without a service publishing it what the latest Android is. And even if you did, nobody ships stock Android- they all cherry pick additions and all use different minor build releases. So you could at most know if it was the right major version