How to get the highest API level supported by the device?

Hello,
I implement a class inheriting the BaseAdapter to provide data for a
Gallery. There is a method in the BaseAdapter class that I have to
implement is getScale(boolean focused, int offset)
This method is used to scale images which are on left and right hand
side of the center image. I tried to write logs to know the order in
which getView, getScale, onDraw(of gallery), onDraw(of ImageView)
methods are called. I wonder how the getScale method would be called.
What I mean is when this method will be called and by which method,
which event of gallery object.
I want to know this because I want to do something else when images
are scaled (when getScale() method is called). Which method should I
override to control this?
Thanks,
Colin
--~--~---------~--~----~------------~-------~--~----~