Force close on reading group SMS

view story

http://stackoverflow.com – Hi I am developing an android SMS app. I am trying to read SMS from built in messaging app and display it as Uri uriSMSURI = Uri.parse("content://mms-sms/conversations?simple=true"); Cursor cursor = getContentResolver().query(uriSMSURI, new String[] {"*"}, null, null, "date desc"); while (cursor.moveToNext()) { snippet = cursor.getString(cursor.getColumnIndexOrThrow("snippet")); Long date = cursor.getLong(cursor.getColumnIndexOrThrow("date")); recipient_ids = cursor.getString(cursor.getColumnIndexOrThrow("recipient_ids")); (HowTos)