title: how to GET the SINGLE ROW  with cursor in android?
body: <p>i want to get the row from databas which name = jiten
  but is gives error in syntax can anyone tell me what is the right syntax for 
  getting the single row
  here is my code for database class</p>
  
  <pre><code>public void getdata()
  {
  
  
       Cursor cursor = myDataBase.query("emp", new String[] {"email","name"}, " name='jiten'",new String[]{}, null, null, null);
  
       Log.e("running", "cursor run");
  
  
  
       if(cursor!=null)
       {
  
           Log.e("running", "curosr is not null");
       while(cursor.moveToFirst())
       {
  
           Log.e("running", "curosr while loop enter");
  
           String temp =  (cursor.getString(cursor.getColumnIndex(email)));
               String temp2 =(cursor.getString(cursor.getColumnIndex(name)));
          Log.e("running", "id  email" +temp+ " name"+temp2);
  
      }
   }
  }
  </code></pre>