Serial number of SIM card bound by Android mobile guard
Now start to deal with the logic of each navigation page. First, look at the second navigation page
Here, you need to implement the function of binding SIM card serial number. Note to add corresponding permissions: uses permission Android: name = "Android. Permission. Read_phone_state"
Add the remove method in sputil
Run item, check check@R_638_2419 @After, view data / data/ shared_ Config. In prefs file XML file, as follows:
It shows that the function of binding SIM card has been realized.
When check@R_638_2419 @When the SIM card is not selected, that is, the SIM card is not selected. At this time, click "next page" to pop up a toast reminder. The logic code is as follows:
The effect is as follows:
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.