); } Cursor.close (); //7, message mechanism, sends an empty message informing the main thread that it can go to a collection of data that the child thread has already populated mhandler.sendemptymessage (0); }}.start (); }The effect of the implementation is as follows:Contact information EchoNext implementation Click the contact entry, implement Echo, for example, double-click the first entry, the
result
String phone = Data.getstringextra ("phone");
2, filter special characters (convert the underscore to an empty string)
phone = phone.replace ("-", ""). Replace ("", ""). Trim ();
Et_phone_number.settext (phone);
3, store contact person to SP
sputil.putstring (Getapplicationc
Obtain information about the application and mobile phone installation: application version number, mobile phone model, mobile phone brand, Android system version number, and version number android/*** User-Agent** @ Return user-a
, and there must be a area code
2. If it is a mobile phone, You Can prefix it with "+ 86", "86", "86-", and "+ 86 -".
3. The phone number can only match those in mainland China. There are three places at the beginning of 02, and only the numbers of 010 Beijing are allowed at the beginning of 01
4. The extension number
Http://www.cnblogs.com/wuhuisheng/archive/2011/03/23/1992652.html
The main code for phone number verification is as follows:
Public bool istelephone (string str_telephone)
{
Return System. Text. regularexpressions. RegEx. ismatch (str_telephone, @ "^ (\ D {3, 4 }-)? \ D {6, 8} $ ");
}
The main code used to verify the mobile phone
Method One:
We can use the icloud on the computer to delete, we open the ps://www.icloud.com/in the browser ">https://www.icloud.com/after we click on the icloud enter will see no spam number, But there are still some in the Apple phone, we just find the icloud in the iphone "Setup" to close the Address Book, choose to remove the Address book on the iphone, open the address again.
Method Two:
1
The mobile phone verification code checks whether there is a mobile phone number based on the user name and mobile phone number.
Public function CheckMobileUser ($ data) {$ SQL = 'select phone, username from wlzbpre_user where
1 in the phone, click on the micro-letter phone in the "settings" and then find "mobile phone number" and then click on "Change mobile phone number" open. (pictured below)2 then you can fill in the
Regular Expression of phone number (mobile phone number, 3-4 area code, 7-8 live video number, 1-4 extension code)
(\ D {11}) | ^ (\ d {7, 8}) | (\ d {4} | \ d {3})-(\ d {7, 8 }) | (\ d {4} | \ d {3})-(\ d {7, 8 }) -(\ d {4} | \ d {3} | \ d {2} | \ d {1}) | (\ d {7, 8 }) -(\
In some scenarios we may need to generate some random data, such as generating phone numbers, e-mail addresses and other data in a test environment for functional testing. Or import the production data into the test environment for simple desensitization processing. This is what I developed on the basis of dbms_random to generate:
Mobile phone number
first. Then it should be "1+55". Then use this string to add 1. So why would it output 2?
This is related to the mechanism in PHP where strings become numbers. Let's take a look at the following example
echo (int) ' ABC1 '; Output 0echo (int) ' 1ABC '; Output 1echo (int) ' 2ABC '; Output 2echo (int) ' 22ABC '; Output 22
As we can see from the above example, if you cast a string into a number. PHP will sea
(int) ' 2ABC '; Output 2echo (int) ' 22ABC '; Output 22
As we can see from the above example, if you cast a string into a number. PHP will search for the beginning of the string. If it starts with a number, it is converted.
If not, return directly to 0.
Go back to the 1+55. Since this string is 1+55, it should be 1 after forcing type conversion. On this basis add 1. Of course 2.To prove our conjecture. Le
[Code Note] replace the four digits in the middle of the phone number with the-number and the four digits in the phone number
I ,.
Ii. Code.
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. //
The phenomenon is as follows, iOS app embedded H5 page, originally set the white number, after two or three seconds will automatically turn black, and then click on the time will pop up whether the dialing prompt;Workaround, add the following meta tag to resolve:name= "format-detection" content= "Telephone=no"> iOS app embedded h5 page data automatic color change identification for mobile phone
public static class Regxcheck {//Regular verification mobile phone number (Unicom, telecom, mobile phone number), does not include the landline number, as a member login (regular verification) WinForm
In Android development platform, you can get the native number via Telephonymanager. 1 telephonymanager phonemgr= (telephonymanager)this. Getsystemservice (Context.telephony_ SERVICE); 2 // txtPhoneNumber is a edittext used to display the phone numberNote:Depending on the security mechanism of Android, when using Telephonymanager, it must be in Androidmanifest.xmlAdd
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.