Keeping position of ListView
<p>I'm using the following code to reload my <code>ListView</code>. How should I modify it so that the position of <code>ListView</code> is kept?</p>

<pre><code>protected void refreshListView() {
    datasource = new DataSource(this);
    try {
        datasource.ScanVirtualSystems();
    } catch (Exception e) {
        Log.w("Exception", "exception in ScanVirtualSystems() method");
    }
    MatrixCursor cursor;
    cursor = datasource.getnameList();
    startManagingCursor(cursor);
    String[] from = { "name", "desc", "status", "path", "folder",
            BaseColumns._ID };
    int[] to = { R.id.name, R.id.desc, R.id.status, R.id.path };
    final CustomSCAdapter adapter = new CustomSCAdapter(
            Mactivity.this, R.layout.row, cursor, from, to);
    adapter.notifyDataSetChanged();
    setListAdapter(adapter);
}
</code></pre>
