Code example for SQLiteCursor

Methods: getInt, getString

0
	          public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,
	              long arg3)
	          { 
	            /* getSelectedItem©Ò¨ú±oªº¬OSQLiteCursor */ 
	            SQLiteCursor sc = (SQLiteCursor) arg0.getSelectedItem();
	            _id = sc.getInt(0);
	            myEditText.setText(sc.getString(1));
	          } 
 
	          @Override 
	          public void onNothingSelected(AdapterView<?> arg0)
	          { 
 
	          } 
 
	        }); 
 
	  } 
 
	  private void addTodo() 
	  {