[android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread Jeremy Villalobos
Yes Do note that some API calls will throw Exceptions on Froyo. To avoid this, use Reflections For example: my app supports from Froyo upward, but Froyo does not support icons on the Preference Activity. So I use this to set the icon for ICS, and skip the step on Froyo void

[android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread G. Blake Meike
Many of the features in 4.1 can also be found in the Support Package (formerly the ACL). Depending on the exact features you need, you may be able to build your app for 4.1 and then backport it to 2.2, by adding the Support Library to the project. G. Blake Meike Marakana The second edition

Re: [android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread Justin Anderson
Another thing you can do is check the API level... I do that for a few features in my app. Then you don't have to use reflection. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Aug 2, 2012 at 8:51 AM, G. Blake Meike blake.me...@gmail.comwrote:

Re: [android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread Raphael P.F.
That's inaccurate, right now Froyo stands for 15.5%http://www.androidpolice.com/2012/08/01/android-platform-distribution-updated-ics-up-to-almost-16-jelly-bean-0-8/ . On Thu, Aug 2, 2012 at 11:56 AM, Justin Anderson magouyaw...@gmail.comwrote: Another thing you can do is check the API level...

Re: [android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread Dianne Hackborn
You generally don't need to use reflection for this. That's a really awkward way to do it... just check the platform version number and only call the API if it is = the version where that API was introduced. On Thu, Aug 2, 2012 at 7:45 AM, Jeremy Villalobos jeremyvillalo...@gmail.com wrote:

Re: [android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread Justin Anderson
Should i develop in Android 2,2 or 4.1? If I develop in Android 4.1 can I make the android:minSdkVerision=8 so that Android 2.2 and up users can download it ? Develop for the latest API possible... Use the minSdkVersion attribute as you mentioned and you should be fine. Just make sure that