[Android] mobile guards save security numbers
Call setonitemclicklistener() method of listview object to set click event of item. Parameter: onitemclicklistener object
Use the anonymous inner class implementation, override the onclick () method, and pass in the parameters: listview, current view, position, ID
Send back the current phone number according to the index position
Call the get () method of the list object to get the map, and call the get (key) method to get the phone
Call setresult() method to return data. Parameters: response code, intent object
Get the intent object and new it
Call putextra (key, Val) of the intent object and put the phone in
Call the finish () method to close the current page
The activity used to open this is startactivityforresult()
Override the onactivityresult () method and pass in the intent object
Determine whether the intent object is null
Call the getstringextra () method of the intent object to get the phone number
Put the phone on EditText and save it to sp when you click next
activity
SelectContactsActivity