1

Possible Duplicate:
How to retrieve the android sdk version?

I'm developing an Android app that needs to provide notifications. For operating systems prior to 2.2 I'm going to use polling, but for new operating systems I want to utilize the new C2DM method. Is there a way to detect which operating system the application is installed on via code? Or is there a better way to go about this altogether?

Community
  • 1
  • 1
honeal
  • 1,690
  • 2
  • 13
  • 15

1 Answers1

2

Have a look at: http://developer.android.com/reference/android/os/Build.VERSION.html

Dennis Winter
  • 2,025
  • 4
  • 32
  • 44