android: smoothScrollToPosition() not working correctly
===

I'm trying to smoothly scroll to last element of a list after adding an element to the arrayadapter associated with the listview.
The problem is that it just scrolls to a random position

    arrayadapter.add(item);
    //DOES NOT WORK CORRECTLY:
    arrayadapter.smoothScrollToPosition(arrayadapter.getCount()-1);

    //WORKS JUST FINE:
    arrayadapter.setSelection(arrayadapter.getCount()-1);