Hi What I ment was that I want my app to be able to run on 1.6 and 2.x devices, and when it runs on more modern devices I would like to use some of the features avalable on those platforms.
Or is there some other clever way to handle platform differences without having sparate branches for each targeted platform version? When the app differes a lot between the platform version I guess that's the way to go, But in this case it is just one method, and I hoped there would be an "easier" way. Thanks for the constant tip. I obviously didn't read the documentation enough. /Mathias On Nov 15, 5:48 pm, TreKing <treking...@gmail.com> wrote: > On Mon, Nov 15, 2010 at 8:25 AM, MathiasL <mathiaslarsso...@gmail.com>wrote: > > > How do I do to get around this problem? > > Build against a version of the platform that has the function you're trying > to use. > > Also, using a String constant for the build version and checking "contains" > is quite silly considering there are integer constants for this exact > purpose. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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