After several days of effort, finally completed this complex operation process, in Android get SIM card phone number and carrier information, see my blog http://blog.csdn.net/peijiangping1989/article/details/7344925
First, we need to write the code for getting SIM card information in the android project,
Import the fla
The full name of imsi is the International Mobile Subscriber identification number, that is, the customer identification code. After the mobile phone is turned on, there is a registration process during the network access process. At this time, a customer number (customer phone number) and customer identification number (imsi) will be allocated to access the network, the system uses the control channel to encrypt
AlgorithmThe parameter group is sent to the customer. After the
[Ctsimsupportgetsimstatus () isequaltostring:kctsimsupportsimstatusnotinserted] can determine if the Sim card is inserted.The premise is to copy the following code into a header file, and then introduce Coretelephony.framework.extern nsstring* c*****t kctsmsmessagereceivednotification;extern nsstring* c*****t kctsmsmessagereplacereceivednotification;extern nsstring* c*****t kctsimsupportsimstatusnotinserted
1. Click contacts on the standby page ].2. Click menu in the lower-left corner of the screen to slide the screen up and select import/export ].3. Select import from SIM card ].4. Check the contacts to be imported. If you want to import all contacts, click [select all]. Here, import all contacts as an example.5. Click finish in the upper-right corner of the screen ].After completing the preceding operations,
1) click "contacts" on the "Huawei glory 3X play Edition" mobile phone to enter and click 【...] Then, click import/export in the open menu to go to the page, as shown in the following figure.2) Now we will display the imported from that SIM card. After selecting it, click [select all] and then click [import], as shown in the figure below.3) on the page that appears, select the import met
This example describes Android's approach to acquiring information about mobile phone SIM card operators, which is of practical value for Android programming. Share for everyone to use for reference. The specific methods are as follows:
The main functional code is as follows:
/**
* Get SIM card operator
* *
Huawei Mate9 Import SIM card contact method steps:
First, the SIM card installed to the Huawei Mate9 mobile phone, and then from Huawei Mate9 Desktop Open Contact, when we enter the empty contact, select "Import Contact", as shown in the picture:
Two, there are three ways to import contacts: storage devices,
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 Simulator Installation activation Tutorial".2, dir
1. First insert the sim card into the mobile phone, then go to [Settings] on the Xiaomi max interface, and then find [system application ], after opening the page, click "contacts". The details are as follows:2. Click import or export contacts, and then click import from storage device.Well, the above is a small Editor for you to sort out the operation on the newly purchased Xiaomi max mobile phon
Some users in the use of the iphone, encountered the inability to read the SIM card, plugged into the Sima card is not valid, if this problem, how to solve it?
The first way to open the iphone's flight mode, wait more than 10 seconds before closing to see if the Sima Card can be read.The second way, the shutdo
Millet mobile phone users to the detailed analysis of the virtual SIM card to share the opening of the tutorial settings.
Tutorial Sharing:
1, turn on the Millet mobile phone system settings, click on the dual SIM card and mobile network settings (if it is not supported dual SIM
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
1. Remove the back cover of the mobile phone.Tip:1) Be careful when disassembling to avoid damage to your nails.2) do not bend or twist the back cover to avoid damage to the back cover.2. Remove the cell phone battery.3. Press your finger on the edge of the SIM card and push it in.4. Just remove the SIM card.
ADN format
ADN is stored in 3f00/7f10/6f3a under the SIM card. The record format is 14 at the minimum, and the maximum value is 255 (?), The maximum number of records is 255 (?)
The last 14 bytes are mandatory. The first 12 bytes are phone numbers, the last is ext1, and the last is ccp1.
If the length is more than 14, the name of the user stored in the front is stored. If it starts with 80, 81, and 82, the
Specific steps
1. In the mobile phone we click on "Contact" as shown in the picture.
2. Then click the "Contact" menu in the following figure.
3. On the phone's "menu" key, select "Import/Export".
4. Click the "Export to SIM card" menu.
5. Because I want to back up so I click on "Select All" as an example, choose Good, click on the top right corner of the screen "finish."
6. Finally click "O
Public String Readsimcard () {
Telephonymanager TM = (Telephonymanager) this.getsystemservice (telephony_service)//access to related system services
StringBuffer sb = new StringBuffer ();
Switch (tm.getsimstate ()) {//getsimstate () Gets the status of the SIM with the following 6 status
Case TelephonyManager.SIM_STATE_ABSENT:sb.append ("no card");
Case TelephonyManager.SIM_STATE_UNKNOWN:sb.append ("Unknown
Today, let's take a look at another important class in the SIM card startup process, Ril.java
First, enter the Ril.java file
/**
* RIL implementation of the Commandsinterface.
*
* {@hide} */
/Leo, you need to be aware of this place, inherit from Basecommands, implement Commandsinterface interface public
final class RIL Extends Basecommands implements Commandsinterface {
...
}Note that this class is
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.