Joke Collection Website - Blessing messages - Android studio code problem How to read the specific content of SMS?

Android studio code problem How to read the specific content of SMS?

1. Click the button to display the contact list of the system. When the user clicks on the contact, he will see the detailed name and phone number.

2. The specific code is as follows: First, configure user permissions in the AndroidManifest.xml file.

& ltuses-permission Android:name = " Android . permission . read _ CONTACTS "/& gt; 1 1

activity_main.xml

& lt? Xml version =" 1.0 "encoding ="utf-8"? & gt

& ltlinear layout xmlns:Android = "/apk/RES/Android "

xmlns:tools="/tools "

android:orientation="vertical "

Android:layout _ width = " match _ parent "

Android:layout _ height = " match _ parent "

tools:context = " com . dragon . test event . main activity " & gt;