Search code examples
androidapisimplecursoradapter

Alternative of SimpleCursorAdapter in API8


dataAdapter = new SimpleCursorAdapter(this, R.layout.country_info,
            cursor, columns, to, 0);

SimpleCursorAdapter requires API11. What is alternative way to do this in API8?


Solution

  • I found out here

    import android.support.v4.widget.SimpleCursorAdapter;
    

    This line of code should be added. Collision with import SimpleCursorCollision may happen. In that case remove this line

    import SimpleCursorAdapter;