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
Original: http://www.cnblogs.com/growing/archive/2010/11/19/1881372.html
Mobile phone numbers are not all available. Just a part of it can be got. This is because the mobile operator did not write the phone number data to the SIM card. SIM card has only a unique number, for network and device identification that is the IMSI
Original article: http://www.cnblogs.com/growing/archive/2010/11/19/1881372.html
Not all mobile phone numbers can be obtained. Only some of them can be obtained. This is because the mobile operator did not write the data of the mobile phone number into the SIM card. the SIM card only has a unique ID for the network and device to identify, that is, the imsi number
Palindrome number of the positive and negative sequence is the same number, so we put this number of high-low-level exchange, that is, 1234->4321, and then use the new number to compare with the previous digital exchange is equal, that is, can determine whether this number i
Android determines the operator of the mobile phone number
TextView TV = (TextView) findViewById (R. id. TV); TelephonyManager telManager = (TelephonyManager) getSystemService (Context. TELEPHONY_SERVICE); // get the IMSI code of the SIM card String imsi = telManager. getSubscriberId (); // MNC if (imsi! = Null) {if (
We talked about cell phone, card-related number data including Imsi,msisdn,iccid,imei /*** * Get phone IMEI number @paramname *@return * @exception[Exception type] [exception description] *@see[Class, Class # method, Class # member] *@since[Which version starts with this method]*/ PublicString Getimei () {Telephonymanager Telephonymanager=(Telephonyman
/*** Get app Crash exception report** @param ex* @return*/Private String Getcrashreport (context context, throwable ex) {PackageInfo pinfo = getpackageinfo (context);StringBuffer exceptionstr = new StringBuffer ();Exceptionstr.append ("Version:" +Pinfo.versionname+ "("//version number of the current app.) Corresponds to the version number set in the manifest+ Pinfo.versioncode + ") \ n");Exceptionstr.append
the HLR number of each mobile service, and ABCD is the mobile customer code. The Sn Structure of China Unicom is h1h2abcde, hlh2 is the HLR Number of the mobile business region network, and ABCDE is the mobile customer code.
When the customer number capacity is limited, the domestic destination code can be expanded. The Ministry of Posts and Telecommunications c
Preface Welcome to share and recommend useful code segments ~~Statement You are welcome to repost, but please keep the original source of the article:CSDN:Http://www.csdn.net O Mo Li in the rainy season:Http://blog.csdn.net/luckkof
Body
Some SIM cards are not preset with the VoiceMail number at the factory, but the operator requires that the preset VM number be read from the mobile phone according to PLM
Some SIM cards do not have a preset voicemail number at the factory, but the operator also requires the ability to adaptively read the preset VM number from the phone according to PLMN. This article describes how to preset VM number in XML, and how to allow users to modify and remember the user's choices. VM number use
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 key (KI), authentication and encryption algorithms, and so on.The second type is temporary storage of data about the network. such as t
In Linux, you can view the number of physical CPUs, cores, logical CPUs, and linux. In Linux, when you view the number of physical CPUs, cores, and logical CPUs, we recommend that you enable the number of worker processes to 1 to 4 times the number of CPU cores. So I learned how to view the
The number of decimal places in a repeating prime number must be smaller than that in the prime number itself.
Generally, decimal places with the reciprocal of prime numbers are complex. Because the reciprocal of prime numbers is also a fraction, it must be a round-robin decimal (except for 2 and 5 ), but what is the maximum
The JS Code randomly generates the name, mobile phone number, ID card number, bank card number, and js bank card number.
During development and testing, you often need to enter the name, mobile phone number, ID card number, and ba
Question: In the array, subtract the number on the right of the number to get a number pair. Calculate the maximum value of the difference between all number pairs. For example, in the array {2, 4, 1, 16, 7, 5, 11, 9}, the maximum value of the number pair is 11, which is the
GCDTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission (s): 605 Accepted Submission (s): 268
Problem DescriptionThe greatest common divisor GCD (a, B) of two positive integers a and B, sometimes written (a, B), is the largest divisor common to a and B, For example, (1, 2) = 1, (12, 18) = 6.(A, B) can be easily found by the Euclidean algorithm. Now Carp is considering a little more difficult problem:Given integers N and M, how many integer X satisfies
CentOS View System version
cat/etc/redhat-
1) View the version of the CentOS kernel:
[root@localhost ~]# cat /proc/version Linux version 2.6.18-194.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:14 EDT 2010
2) Display the system name, the node name, the operating system's release number, the operating system version, the machine ID
Change the positive number to the corresponding negative number, and change the negative number to the corresponding positive number # include Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced."C" Changes the positive 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.