<Android Kotlin: retrieving sender's address or ph...
# stackoverflow
u
Android Kotlin: retrieving sender's address or phone number from the MMS message is throwing error/ is not working I am building an Android application using Kotlin. My app need to receive the MMS message. I am also trying to retrieve the sender's address/ phone number from the MMS message details. But it is not working as expected. This is the function I use to retrieve the sender's address from the MMS message private fun getSenderAddress(messageId: String): String { val selection = "_id = $messageId" val uri = Uri.parse("content://mms") val cursor: Cursor =...