[android-developers] Re: Test for Android SDK version? Switch code for 1.5 cupcake or 1.6 donut

2009-10-18 Thread Brady

Hi A. Elk,

there are some bugs in Donut that I'm trying to work around.
http://code.google.com/p/android/issues/detail?id=4255
http://code.google.com/p/android/issues/detail?id=4266

Cheers,
Brady

On Oct 16, 10:49 am, A. Elk lancaster.dambust...@gmail.com wrote:
 Curiosity: what variation? is it related to hardware, or to API
 differences?

 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
-~--~~~~--~~--~--~---



[android-developers] Re: Test for Android SDK version? Switch code for 1.5 cupcake or 1.6 donut

2009-10-16 Thread A. Elk

Curiosity: what variation? is it related to hardware, or to API
differences?

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
-~--~~~~--~~--~--~---



[android-developers] Re: Test for Android SDK version? Switch code for 1.5 cupcake or 1.6 donut

2009-10-15 Thread EboMike

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
-~--~~~~--~~--~--~---