title: Reading last sms from a particular sender
body: <p>Im building a app that is reading last sms from spec number (vb# 8888). Code is working great. I only have one prob. When i get a new sms from other number (vb# 7777)my code stops reading sms from (v#8888). if i delete the new sms from (7777) than my code strats working again.  I'm using this to update a string in my app.  Can someone help me</p>
  
  <p>This is my code </p>
  
  <pre><code>Uri mSmsinboxQueryUri = Uri.parse("content://sms/inbox");
   Cursor cursor1 = getContentResolver().query(mSmsinboxQueryUri, null, null, null, null);
  
  String[] columns = new String[]{"address", "body"};
  
  if(cursor1.moveToFirst()) {
  
       String address = cursor1.getString(cursor1.getColumnIndex(columns[0]));
  
  if address.equalsIgnoreCase("+597*******")) {
  
  body = cursor1.getString(cursor1.getColumnIndex(columns[3]));
  
  Koers = (TextView) findViewById(R.id.Koersdiedag);
  
  Koers.setText(body);//body
  </code></pre>