Here is a link I found that shows how to use reflection in Java. I think this is for an earlier version of Java but the principles and most of the code should be relevant.
http://java.sun.com/developer/technicalArticles/ALT/Reflection/ On Wed, Feb 23, 2011 at 2:04 PM, Justin Anderson <[email protected]>wrote: > It can be done, but you have to use Reflection which can be quite slow > sometimes > > > On Wed, Feb 23, 2011 at 1:58 PM, dashman <[email protected]> wrote: > >> Is it possible to write code for a certain API (e.g. 4) >> >> and at runtime determine what API the user is running >> and if a more advanced one, make an appropriate >> call to the later API function. >> >> specifically, i'd like to call overridePendingTransition() >> but that's available in API 6 only. >> >> -- >> 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 > > > -- 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

