Alibabacloud.com offers a wide variety of articles about gsm cdma dual sim phone android, easily find your gsm cdma dual sim phone android information here online.
Requires the default channel 50 and 60 to be set and a dual SIM card is supported.
Add code to the Phoneapp.java file:
At the beginning of the file, import the package:
Copy Code code as follows:
Import Android.provider.Telephony;
Import Com.android.internal.telephony.gsm.SmsBroadcastConfigInfo;
Import android.content.ContentValues;
Import Android.database.Cursor;
2. Add the
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
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
* *
Android determines the phone SIM statusPublic String readSIMCard (){TelephonyManager tm = (TelephonyManager) this. getSystemService (TELEPHONY_SERVICE); // obtain related system servicesStringBuffer sb = new StringBuffer ();Switch (tm. getSimState () {// getSimState () gets the sim in the following 6 states:Case Teleph
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
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, the core code:
Copy Code code as follows:
Telephonymanager TM = (Telephonymanager) this.getsystemservice (Telephony_service);
String I
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.