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

Reply via email to