I dynamically add the views in the scroll view and I want the scroll view to auto scroll up so as to show last items when available space completely fill.
Your solution is working, but I have also found the following code:
ScrollView scrollView = (ScrollView) findViewById(R.id.sscroll);
scrollView .fullScroll(View.FOCUS_DOWN);