title: Using AlertBuilder with cursors
body: <p>I want an AlertDialog to show a list of countries selected from database with a cursor, it selects id and country name, I have the following code but I don't know how to get the selected item:</p>
  
  <pre><code>AlertDialog.Builder ab=new AlertDialog.Builder(this);
  ab.setTitle(R.string.msg_title_Pais_Resid);
  Locale locale = Locale.getDefault();
  final Cursor items  = DaoProvider.getListaPaisesCursor(this, (locale.getLanguage()).toUpperCase());
  
      ab.setCursor(items,new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {
              //Here: get the selected item object (or id)
          }
      }, Internacionalizacion.colInternacionalizacionTraduccion)
  </code></pre>
  
  <p>Thanks</p>