On 13 April 2011 10:36, Zsolt Vasvari <[email protected]> wrote: But that doesn't really work, at least in my case. I conditionally > use features from API Levels 4, all the way to 11. Setting the > compiler to build against Level 4 would cause compiler errors, which > it should. >
This is normal, unfortunately. If you use something from API 11, building against 4 will throw errors as such method/constant etc simply does not exist in API 4. That's why I said you shall build against highest API you use features of due to that. Kostya most likely got different case as he checks if he is not (unintentionally) using something that does not exists in lower API. > I think the only way is to run in the emulator against the lowest > supported API and see if you get any VerifyErrors. > Yes, you shall pay more attention to testing if your app does what you say it do, because there's higher risk of facing bug or problems caused by this conditional code. Regards, Marcin Orlowski *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy... *Date In Tray* <http://bit.ly/dateintraypro> - current date at glance... WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and *Twitter<http://webnetmobile.com/twitter/> * -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

