• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

sms-box

  1. A

    How to select messages from a specific phone number (Kotlin Android)

    val cursor = contentResolver.query(Uri.parse("content://sms/inbox"), null, null, null, null) if (cursor != null) { //cursor.moveToFirst() cursor.moveToPosition(1) var text = cursor.getString(12) Toast.makeText(applicationContext,text,Toast.LENGTH_SHORT).show()...
Back
Top Bottom