title: Navigation Drawer refresh/reload
body: <p>I managed to get my Nav-Drawer and Fragments work nicely. The problem I'm facing is, that I want the user to add new list-items to the Nav-Drawer and I'm doing this with a Dialog :</p>
  
  <pre><code>public void createAlert() {
      //ALERT
      AlertDialog.Builder alert = new AlertDialog.Builder(this);
  
      alert.setTitle("Neue Liste erstellen");
      //alert.setMessage("Message");
  
      // Set an EditText view to get user input
      final EditText input = new EditText(this);
      alert.setView(input);
  
      alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int whichButton) {
              String value = input.getText().toString();
              // Do something with value!
  
              dbHelper.createNewListItem(value, null);
  
          }
      });
  }
  </code></pre>
  
  <p>My Nav-Drawer looks like this:</p>
  
  <pre><code>    // Erstellt den neuen MenuAdapter aus der Klasse MenuListAdapter
      MenuListAdapter mMenuAdapter = new MenuListAdapter(this, drawerTitles,  drawerSubtitles, drawerIcons);
  
      View footer = (View)getLayoutInflater().inflate(R.layout.drawer_list_header, null);
      mDrawerList.addFooterView(footer);
  
      mDrawerList.setAdapter(mMenuAdapter);
  </code></pre>
  
  <p>How can I refresh the listview (nav-drawer) after the Dialog is closed. I don't find any working solution. <code>notifyDataSetChanged</code> is not defined and none of these are working:</p>
  
  <pre><code>mDrawerList.refreshDrawableState();
  mDrawerList.invalidate();
  </code></pre>
  
  <p>Anyone knows a solution ?</p>
  
  <p><strong>Update:</strong></p>
  
  <p><strong>this is my reload Method:</strong></p>
  
  <pre><code>for(int i = 0; i &lt; cursor.getCount(); i++){
      String listname = cursor.getString(cursor.getColumnIndex("listname"));
      String listsubtitle = cursor.getString(cursor.getColumnIndex("subtitle"));
      allListNames[i] = listname;
      allListSubtitle[i] = listsubtitle;
      cursor.moveToNext();
      }
  
      drawerTitles = allListNames;
      drawerSubtitles = allListSubtitle;
  
      mMenuAdapter = new MenuListAdapter(this, drawerTitles, drawerSubtitles,   drawerIcons);  
      mDrawerList.setAdapter(mMenuAdapter);
      mMenuAdapter.notifyDataSetChanged();
  </code></pre>