no, this "else" means it's a sms type. Use "if (cursor.getCount() > 0)" to bypass the empty result.