of the selected contact, and finally get the data from the activity.①. Set up a Click event for select Contacts; ②. Connect two activity via Intent in the Click event Method (the wizard sets the third step, select the contact); ③. Startactivityforresult Intent, int Requestcode) method starts, the parameter intent is the intention of connecting two activity, int requestcode is the result code returned, here first set to 0.Click event Methodpublic void SelectContact (view view) {Intent Intent = n
The following is the Android read the user number, mobile phone number, SIM card serial number of the implementation code is introduced, need friends can come to refer to the next
1, using the method provided by Telephonymanager,
Android mobile guard-bind SIM card serial number, androidsim
Now let's take a look at the logic of each navigation page. First, let's look at the second navigation page.
For more information, see http://www.cnblogs.com/wuyudong/p/5949775.html.
You need to bind the serial number
Now start to deal with the logic of each navigation page, first look at the second navigation page
Here you need to implement the ability to bind the SIM card serial number, and note that the appropriate permissions are added: Uses-permission android:name= "Android.permission.READ_PHONE_STATE"
Private Settingitemview Siv_sim_bound;
@Override prote
The data stored by the SIM card can be divided into four categories:the first class is fixed-storage data. This data is written by the SIM card center before the mobile phone is sold, including the International Mobile Subscriber Identification Number (IMSI), authentication
This paper introduces a very convenient tool to view SIM card information of mobile phone, and can easily view serial number information such as IMSI on the phone.1. This software can be found on the official website of the stone-cut simulator, found and installed in the Baidu Web-disk link below the stone-cut simulation organ network to find the "cut stone Simul
Copy Code code as follows:
public class Uniteqservice {
public static final String Log_tag = "Uniteqservice";
public Boolean DEBUG = true;
Private Boolean hasservice = false;//whether there is a service
Private phonestatelistener[] mphonestatelistener;//monitor dual SIM card
Private Telephonymanager Mphone;
Listening classPrivate Phonestatelistener Getphonestatelistener (final int sub) {Phones
[Android] mobile guard binds a SIM card and androidsim
Update:
If the broadcast cannot be started, it seems that the system of the higher version is disabled.
You can also use adb to send boot broadcasts.
Adb shell am broadcast-a android. intent. action. BOOT_COMPLETED
Not tested yet. Go back and try again.
===========
of the function
Binding SIM card
When the user clicks on "Bind SIM card", the corresponding processing logic is triggered, the serial number of the current SIM card is ob
Ios7 test OK
[Ctsimsuppgetgetsimstatus () isequaltostring: kctsimsuppsimsimstatusnotinserted] You can determine whether a SIM card is inserted. The premise is to copy the following code to a header file and then introduce coretelephony. framework.Extern nsstring * const kctsmessagereceivednotification;Extern nsstring * const kctsmessagereplacereceivednotification;Extern nsstring * const kctsimsuppsimsimsta
From: http://blog.csdn.net/baimy1985/article/details/7820024
There is a previous article about the information on the card (Android information (MMS) (7)-SIM card text message). There is also a very important information on the SIM car
Sdcard and SIM card are used in a project. When using sdcard, You need to determine whether the status can be read and written. When using a SIM card, you must determine whether it is readable. For how to do this, see the following two functions:// Whether sdcard can be read/writtenPublic boolean IsCanUseSdCard (){Try
Sdcard and SIM card are used in a project. When using sdcard, You need to determine whether the status can be read and written. When using a SIM card, you must determine whether it is readable. For how to do this, see the following two functions:// Whether sdcard can be read/writtenPublic Boolean iscanusesdcard (){Try
Reprint Address: http://blog.csdn.net/sunxingzhesunjinbiao/article/details/7021328
AndroidAcquisition of the local number and SIM card status
Telephonymanager This class is useful and can get a lot of information about mobile phones and SIM cards.Immediately after the comment code, please enjoy
Package Net.sunniwe
Android development-Get mobile phone SIM card information, androidsim
TelephonyManager is a service class that manages the call status and network information of a mobile phone. It provides a large number of getXxx () methods to obtain information about the telephone network.
TelephonyManager class overview:
It can be
expired text messages, and text messages that exceed the number limit, and then return the inserted SMS URI.Finally, for the replacement or insertion of text messages, use the URI to StatusBar do notification.The GUI can also get new text messages when refreshing the list, because the text messages are already stored in the database.
The sequence diagram received by SMS is as shown in the picture:
Third, dual
Search for information on the Internet and find that the GSM module has no command to obtain the SIM card number.
What should I do if my device needs to identify its identity using SIM card numbers and other parameters?
If there is only one, I can write the
didn't get the SIM card serial number. The test MM believed that there was a card, and I firmly believed that the card was not properly placed... The result shows that it is a dual-Card problem. Go to the eoeAndroid website to vi
/** Name of service provider:* For example: China Mobile, Unicom* The status of the SIM card must be Sim_state_ready (use Getsimstate () to determine).*/tm.getsimoperatorname ();//string/** Serial number of SIM card:* Requires permission: read_phone_state*/Tm.getsimserialnu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.