title: Any alternative to this code?
body: <p>I have tried many things to make this code work, it consists of showing an AlertDialog/description when taping on an element/marker from map. The problem is that 3 of 4 markers work (but not showing the right description. it looks like the previous one) and the last force closes the app with the logcat error:</p>
  
  <p><code>CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4</code></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>@Override
          protected boolean onTap(int index) {
              db = openHelper.getWritableDatabase();
  
              String[] columns_descri = new String[] {COL_DESCRI};
  
              Cursor cur = db.query(true, TABLE_COORD, columns_descri,null, null, null, null, null, null);
  
              cur.moveToPosition(index);
                  String description = cur.getString(cur.getColumnIndexOrThrow(COL_DESCRI));
  
                  AlertDialog.Builder dialog = new AlertDialog.Builder(Geo.this);
                  dialog.setTitle("Infos.");
                  dialog.setMessage(description);
                  dialog.setPositiveButton("OK", new OnClickListener() {    
                      @Override
                      public void onClick(DialogInterface dialog, int which) {
                          dialog.dismiss();
                      }
                  });
                  dialog.show();
  
               cur.close();
               db.close();
  
              return true;
          }
  </code></pre>