How to add an item to SimpleCursorAdapter?
I have a simple database table with 2 columns "_id" and "title". and I'm displaying the data in a spinner, and it works well. but I need to add one more item at the top of the spinner list that is not from the database with id = 0 and title = "not specified"; Spinner list = (Spinner) findViewById(R.id.spinner); Cursor cursor = database.getAll(); // returns cursor with objects String[] columns = new String[] {"title"}; int[] to = new int[] {R.id.title}; list.setAdapter(new SimpleCursorAdapter(this, R.layout.object_item_simple, cursor, columns, to)); I need to know the selected item id from the