Here I am going to print all the methods that are inside the class using reflection, so in a normal JAVA program it is going to print. But in Android layout it is displaying only one method:
public static void main() throws Exception{
Log.i("Ramu","I am here displayM ");
Class o =Class.forName("android.view.AbsSavedState");
Method M[]=o.getMethods();
for( i=0;i<M.length;i++)
methodname = M[i].getName();
Listview.your_array_list.add(methodname);
Listview.your_array_list.add(methodname);
Log.i("Ramu","methode name "+ M[i].getName());
//System.out.println(M[i].getName());
}
for( i=0;i<M.length;i++) methodname = M[i].getName();