title: SimpleCursorAdapter deprecated, what to do now?
body: <p>I have been working through a tutorial on using Androids SQLite Database.  The tutorial is found here: <a href="http://coenraets.org/blog/androidtutorial/" rel="nofollow noreferrer">http://coenraets.org/blog/androidtutorial/</a> </p>
  
  <p>I am stuck on step three, everything in android studio shows that there are no errors.  But I cant seem to query the database, it wont show results when I press the search button.  Is it because of this SimpleCursorAdapter being deprecated? If so, how would I go about making this database work.</p>
  
  <pre><code>**MAIN ACTIVITY(EMPLOYEELIST.java)**
      import android.app.Activity;
      import android.database.Cursor;
      import android.database.sqlite.SQLiteDatabase;
      import android.os.Bundle;
      import android.view.View;
      import android.widget.EditText;
      import android.widget.ListAdapter;
      import android.widget.ListView;
      import android.widget.SimpleCursorAdapter;
  
      public class MainActivity extends Activity {
  
          protected EditText searchText;
          protected SQLiteDatabase db;
          protected Cursor cursor;
          protected ListAdapter adapter;
          protected ListView employeeList;
  
          /** Called when the activity is first created. */
          @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);
              db = (new DatabaseHelper(this)).getWritableDatabase();
              searchText = (EditText) findViewById (R.id.searchText);
              employeeList = (ListView) findViewById (R.id.list);
          }
  
          public void search(View view) {
              // || is the concatenation operation in SQLite
              cursor = db.rawQuery("SELECT _id, firstName, lastName, title FROM employee WHERE firstName || ' ' || lastName LIKE ?",
                      new String[]{"%" + searchText.getText().toString() + "%"});
              adapter = new SimpleCursorAdapter(
                      this,
                      R.layout.employee_list_item,
                      cursor,
                      new String[] {"firstName", "lastName", "title"},
                      new int[] {R.id.firstName, R.id.lastName, R.id.title});
              employeeList.setAdapter(adapter);
          }
  
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/XXv8e.png" alt="enter image description here"></p>