Simplecursoradapter is used to bind a cursor to a adapterview and use a layout to define the UI for each row/item. The contents of each business view are populated with the column values of the corresponding rows in the underlying cursor.
Simplecursoradapter is built by passing in the current context, a layout resource for each entry, a cursor that represents the data to be displayed, and an array of two integers, one of which contains the index of the column to use (which contains the resource data), and the Other ( An array of the same size stores resource IDs that specify which views within the layout should be used to display the contents of the corresponding columns (that is, which component you want to display the data on).
string[] Strarr = new string[]{"str1", "str2"};int tolayoutids = new INT[]{R.ID.TEXT1,R.ID.TEXT2}; Simplecurosoradapter myadapter = new Simplecursoradapter (Mainactivity.this,r.layout.mysimplecusorlayout,cursor, Fromcolums,tolayoutids);