You can find that out with android.os.Build.VERSION, but depending on what you want to do, that sounds like a hacky way to check for availability of functions. If you're looking for the existence of a certain function, you could check that through reflection instead.
On Oct 15, 5:11 pm, Brady <brady.kro...@gmail.com> wrote: > Hi, > > is it possible at runtime to determine whether the platform is running > cupcake or donut? Due to some variation in my app between the two > versions I'd like to run different code based on the SDK version. > > Thanks! > Brady --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---