How to get the native phone number on Android, and now Android provides an API to read the number that was cured on the early SIM card,
Copy Code code as follows:
Private String Getphonenumber () {
Telephonymanager Mtelephonymgr;
Mtelephonymgr = (Telephonymanager) getsystemservice (Context.telephony_service);
return Mtelephonymgr.getline1number ();
}
I created a list of contacts using Excel. But I found a problem with the display of a phone number leading zero. When you enter "090", the result becomes "90". Why?
Put
this picture away.
expand this picture
If no leading zeros are displayed, the result is not a correct phone number.
Copy codeThe Code is as follows:Function checkMobile (){Var sMobile = document. mobileform. mobile. valueIf (! (/^ 1 [3 | 4 | 5 | 8] [0-9] \ d {4, 8} $/. test (sMobile ))){Alert ("the first seven digits of a complete 11-digit mobile phone number or a correct mobile phone number ");Document. mobileform. mobile. focus ()
Mobile phone numbers are not all available. Only a part of it can be obtained.This is because the mobile operator does not write data from the mobile phone number to the SIM card. The SIM card has only a unique number. For network and equipment identification that is the IMSI numbe
Use JavaScript to verify the regular expression of the mobile phone number. The Code is as follows:
Function checkMobile () {var phone = document. getElementById ("phone"). value; var reg0 =/^ 13 \ d {5, 9} $/; // 130--139. At least 7-bit var reg1 =/^ 153 \ d {8} $/; // China Unicom 153. At least 7 bits var reg2 =/^ 1
How to use mobile phone to manage micro-credit public numbers
First, the mobile phone public number management software selection, if a feeling is not accustomed to use, you can change another.
This tutorial takes the micro-platform housekeeper as an example.
Upon completion of installation, use your own micro-letter public
A simple demo, from aggregation data to apply for mobile phone number attribution to the data interface;
Enter the query number in the EditText, get the number and use HttpURLConnection to get the JSON data in the child thread, then parse;
After data acquisition is complete, update the UI in the main thread to show t
Copy the code code as follows:
1. PHP Verification Mobile Phone number (support attribution to query and code for UTF8) _php tutorial
Introduction: PHP Verification mobile phone number (support attribution to query and encoded as UTF8). Copy the code as follows:? PHP//Mobile numbe
Jquery practice case -- verify the mobile phone number and jquery case
If you want to verify the mobile phone number, you need to know the number segment of the mobile phone number.
//
This article is also a collection of a large number of JS verification of mobile phone number code, all from the network, if you are not very understanding, you can directly take us now mobile phone number verification code to use OH.
JS Verify mobile
This article describes the JS and jquery verified e-mail, mobile phone number, zip code method.
jquery Code:
Verify ZIP code
$ ("#postcode"). blur (function () {
//Get Postal code
var postcode=$ ("#postcode"). Val ();
if (Is_postcode (postcode)) {
$ ("#postcode_info"). HTML ("");
else{
$ ("#postcode_info"). HTML ("Incorrect postal code format");
return false;
}
});
Verify the
PHP allows you to share user-defined functions hidden by asterisks (*) with four digits in the middle of a mobile phone number.
Php shields four phone numbers in the middle:
Copy codeThe Code is as follows:Method 1:Function hidtel ($ phone ){$ IsWhat = preg_match ('/(0 [0-9] {2, 3} [\-]? [2-9] [0-9] {6, 7} [\-]? [0-9]?
When you contact this tutorial, the method used to select a contact is to read the contact from the database, and then display it with listview. After selecting the contact, the mobile phone number is returned,
In this way, when you click to select a contact, it takes time to load and the displayed contacts do not seem to be full,
In short, it is not good. You do not have to process the interface by calling
1. Change the binding mobile phone just click on the microblogging page "account" into the Account Settings page, click on the left side of the "Account Security" and click "Binding Mobile Phone" to expand the option;
2. Click on "Change Number" (Warm tip: If there is no "change number" and "Unbind" button, ind
ArticleDirectory
Obtain the home location information of the mobile phone number
Obtain the current service status
Obtain the home location information of the mobile phone number
Obtain the current service status
1. form-based (open the complete page)
2. form-based (opening a small window)
3.
Here is the regular expression that the mobile official pulled down:Determine if a string is a mobile phone number0 is the cell phone number 1 is not the 11 digit number 2nd code prefix is incorrectUsed to verify the number of digits in the mobile
12306 Mobile phone number is registered
Have a friend to 12306 website Registration mobile phone number is we will encounter 12306 mobile phone number is registered problem, then how to deal with it.
The specific methods are a
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.