It has to be in a conditional test ie:

  if (Build.VERSION.SDK_INT >=  <some api level> {
     // you can call any function defined only  since  <some api level> or 
greater.
  }


On Saturday, 10 September 2011 13:32:39 UTC+2, Mark Murphy (a Commons Guy) 
wrote:
>
>
> 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