title: list with checkBoxes in a navigation drawer
body: <p>Im trying to make a navigation drawer with a listview that has check boxes in it. as each list item. this is what i have tried so far , But im having great difficulty.</p>
  
  <p>what im looking to is create a prefence menu.
  i.e "bluetooth on/off (checkbox)" etc </p>
  
  <p>Heres My Main Activity:</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
  //Navigation Drawer Member Variables
  private ListView mDrawerList;
  private DrawerLayout mDrawerLayout;
  private ArrayAdapter&lt;String&gt; mAdapter;
  private ActionBarDrawerToggle mDrawerToggle;
  private String mActivityTitle;
  
  //Navigation Drawer
  
      mDrawerList = (ListView)findViewById(R.id.navList);
      mDrawerLayout = (DrawerLayout)findViewById(R.id.drawer_layout);
  
      mActivityTitle = getTitle().toString();
  
      addDrawerItems();
      setupDrawer();
  
   private void addDrawerItems() {
      String[] osArray = { "Bluetooth", "Reply to Calls", "Reply to sms", "customise message"};
      mAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, osArray);
      mDrawerList.setAdapter(mAdapter);
  
      mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
              CheckedTextView ctv = (CheckedTextView)view;
              if (ctv.isChecked()){
                  Toast.makeText(getApplicationContext(),"uncheckd",Toast.LENGTH_LONG).show();
              }
              else {
                  Toast.makeText(getApplicationContext(),"checked",Toast.LENGTH_LONG).show();
              }
  
          }
      });
  }
  
  
  
      mDrawerToggle.setDrawerIndicatorEnabled(true);
      mDrawerLayout.setDrawerListener(mDrawerToggle);
  }
  </code></pre>
  
  <p>Im getting an error saying that the adapter needs a text view. 
  Any help would be greatly appreciated. Thanks</p>