ListView onScroll method in onCreate method

view story

http://stackoverflow.com – i wrote this code inorder to handle the onScroll method (when i reach to the bottom of the listView it will load one more item to the listView this is my function in the onCreate mothod: private int count=0; private int step=1; count=0; Log.d("main ","before add more"+count); addMore(); Log.d("main ","after add more"+count); swipeListView.setOnScrollListener(new OnScrollListener(){ @Override public void onScrollStateChanged(AbsListView view, int scrollState) {} @Override public void onScroll(AbsListView vi (HowTos)