Uri uri = Uri.parse("content://sms/inbox");
// returns all the results from the given Context
Cursor c = getContentResolver().query(uri, null, null ,null,null);
if ( c == null || 0 == c.getCount() )
{
Log.i("CHANDRA","Err --> No message in Inbox ********* ##########");
return;
}