On Thu, Aug 5, 2010 at 6:01 AM, Neilz <[email protected]> wrote:

> Any ideas please on how I can achieve this?


I don't think you have to do anything. I'm no expert on Java reflection, but
... if you add this function to your Activity and it runs on an older
platform where there's nothing to override, then it should just appear like
any other function that you added to your class. Assuming this is a function
the OS calls for you at some point, it will never get called.

On newer versions it will override the base function and be called when it's
supposed to be.

Of course, if you make use of it yourself somewhere where it *could* be
called on older platforms, a simple check of the OS build version can keep
you from executing anything you shouldn't be.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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