On Sat, Sep 10, 2011 at 4:11 AM, b0b <[email protected]> wrote:
> It would crash on Android 1.x only, since starting with 2.0 the classloader
> loads the symbols only when they are reached.
> No need to use reflection for that kind of test if the target is Android
> 2.0+

That might be true for data members (never tried that), but it is
definitely not true for methods. You cannot load a class that refers
to a method if that method does not exist -- you will get a
VerifyError.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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