title: Sqlite returns null value
body: <p>I am trying to get the phone number in BroadCastReceiver from database but it's  giving me empty value. Database has 50 entries. I am trying to do something like <br> <strong>SELECT PHONE_NUMBER FROM TABLE WHERE ID=?</strong> and returning to result in phone.</p>
  
  <pre><code>public String getPhone(String req){
      SQLiteDatabase sqLite=appalaHelper.getWritableDatabase();
      String phone=null;
      String[] columns={appalaHelper.PHONE_NUMBER};
      String selection=appalaHelper.UID+"=? ";
      String[] selectionArgs={req};
      Cursor cursor=sqLite.query(AppalaHelper.TABLE,columns,selection,selectionArgs,null,null,null);
      cursor.moveToFirst();
      while (cursor.moveToNext()){
          phone=cursor.getString(cursor.getColumnIndex(appalaHelper.PHONE_NUMBER));
      }
      return phone;
  </code></pre>
  
  <p>}</p>
  
  <p>BroadCastReceiver</p>
  
  <pre><code> appleHelperAdapter=new AppalaHelperAdapter(context);
      String requestCode=intent.getExtras().getString("de");
      meeSender=appleHelperAdapter.getPhone(requestCode);
   // Here I am getting null value instead of phone number
      Toast.makeText(context, meeSender, Toast.LENGTH_LONG).show();
      appleHelperAdapter.Delete(requestCode);
  </code></pre>