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
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
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
// ------ The bit3-bit0 is NPI (numbering-plan-identification), NPI has a value only when ton is 000,001,010, the other should be 0000, the value is 0 0 0 1, indicating ISDN/telephone numbering plan
// -------------------- TON-NPI ------------ the end
// ---- 00 TP-PID
// -------------------- TP-PID ------------ start
// ------ Bit7, bit6 is 0 0
// ------ Bit5-bi50 is 0 0 0 0 0 0 represents Short Message Type 0
// -------------------- TP-PID ------------ the end
// ---- 00 is a T
Jing Dong's Virtual communications operating brand named "Jingdong Communications", brand logo and SIM card-like card synchronization release. At present, Jingdong communication is still in the business testing stage. March 21 Night, Jingdong Communications successfully opened the first number, and successfully complet
From: http://blog.c114.net/html/30/67130-20646.html
The mobile device (MS) consists of two parts:
Mobile devices (me), which we usually use. Mobile phones such as Nokia, Samsung, and ZTE
The user identification module (SIM) is the phone card we call at ordinary times, such as a mobile phone card such as 13001384321.
What are the functions of mobile phone cards?
A
AID conflicts. The payment class is made by setting the default app, while the other class is the UI popup selection prompt.4. When the screen is off, HCE is not available, the screen is locked HCE can choose support, or you can choose to prompt the user to unlock and then support.5. In the case of the terminal only HCE no SE, ISO 14443-3 of the non-connected parameters by Android takeover, UID use random number, do not use HCE to implement any UID-b
To determine whether the iPhone has a SIM card, refer to the systemconfigure framework tutorial on the official website of Apple to copy the following code to the header file.
Extern nsstring * const kctsmessagereceivednotification;Extern nsstring * const kctsmessagereplacereceivednotification;Extern nsstring * const kctsimsuppsimsimstatusnotinserted;Extern nsstring * const kctsimsuppsimsimstatusready;
Id c
I have always imagined that drones can fly farther and more stably, and can be achieved through 4G signals. Now DJI has helped us achieve this. It is indeed a great company:Features:
Purpose: surveying and mapping, agriculture, inspection, plant protection, and building Measurement
Precision: GPS/BeiDou/GLONASS 3 system, 6-frequency GPS, provides 2 cm-level positioning for Aircraft
4G networks supported
One-controller multi-host (five aerial vehicles)
When the base station's ne
To determine whether the iPhone has a SIM card, refer to the systemconfigure framework tutorial on the official website of Apple to copy the following code to the header file.
Extern NSString * const kctsmessagereceivednotification;Extern NSString * const kctsmessagereplacereceivednotification;Extern NSString * const kctsimsuppsimsimstatusnotinserted;Extern NSString * const kctsimsuppsimsimstatusready;
Id C
Android gets the local SMI card number, androidsmi
1 // get the mobile phone number 2 TelephonyManager tm = (TelephonyManager) this. getSystemService (Context. TELEPHONY_SERVICE); 3 String deviceid = tm. getDeviceId (); // obtain the unique ID of a smart device 4 String te1 = tm. getLine1Number (); // obtain the local number
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.