Question: i want to find out total number of android APIs (Classes and Methods) used in my android application source code. but i want to do it programmatically. can any one suggest me how can i do so??

Thanks in Advance

Answer: 
You can do it with [Reflections API](http://code.google.com/p/reflections/).

You can get the list of classes using the following code : 

```
Reflections ref = new Reflections("package_name");
Set<Class<?>> classes = ref.getSubTypesOf(Object.class);

```

Then by using the [Class.getDeclaredMethods()](http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html#getDeclaredMethods%28%29) or [Class.getMethods()](http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html#getMethods%28%29) you can get the list of methods.
The eclipse metrics plugin looks promising. It is not specially designed for android but there's a chance that it will provide you with (most of) the informations you need.

**Reference**

* [project on sourceforge](http://metrics2.sourceforge.net/)