BrianS wrote: > Hi I'm wondering if it's possible to have an app that has a portion of > its code implemented using Android 1.5 (API Level 3) and part using > 1.6. (For example maybe implementing one of the app's activities in > 1.6 while the overall app is in 1.5)?
You can write to the 1.5 API, then use reflection or conditional class loading to use 1.6 classes, methods, fields, etc. The biggest area of potential trouble will be attempting to override 1.6 methods from an Activity or other manifest-registered component. Here is an example of a project using reflection: http://github.com/commonsguy/cw-android/tree/master/APIVersions/Tagger2/ Here is an example of a project using conditional class loading: http://github.com/commonsguy/cw-advandroid/tree/master/Contacts/Spinners/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 Available! -- 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 To unsubscribe, reply using "remove me" as the subject.

