Android phone number dialing development instance, android phone number dialing
The most common function of a mobile phone is to call and send text messages. In Android development, how do we call the phone through a program? This
Android uses an http request to query the mobile phone number of the specified location and android phone number
Local Data Source
Http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx
Webxml websites also support other request methods, such as SOAP.
Simple InterfaceBelow is MainActivity. java
Package
Android uses an http request to query the mobile phone number of the specified location and android phone number
Local Data Source
Http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx
Webxml websites also support other request methods, such as SOAP.
Simple InterfaceBelow is MainActivity. java
Package
Find a handy matching phone and phone number method, thanks, share here, hope to help more people
Match all URL addresses and linked content
Copy Code code as follows:
$str = "
Preg_match_all ("/
echo "Var_dump ($matches [2]);
echo "Var_dump ($matches [4]);
Matching mailboxes
Copy Code code as follows:
$emails = "w
Verify that the account is validVerification rules: a combination of letters, numbers, and underscores. It must start with a letter and contain 4-16 characters.
FunctionCheckuser (STR ){VaRRe=/^ [A-Za-Z] \ W {3, 15} $/;If(Re. Test (STR) {alert ("Correct");}Else{Alert ("Error") ;}} Checkuser ("jiade_cnblogs");//Call
Verify mobile phone numberVerification rules: 11-digit number, starting with 1.
Funct
");//calledVerify MailboxValidation rules: Leave your email address in the "first part @ Second part"The first part: By letter, number, underline, short line "-", Dot "." CompositionPart two: For a domain name, the domain name consists of letters, numbers, short-term "-", the domain name suffix,and the domain name suffix is generally. xxx or. xxx.xx, a domain name suffix is generally 2-4-bit, such as cn,com
Use JAVA code to obtain some basic information about the mobile phone (the local number, SDK version, system version, and mobile phone model) and javasdk
The Code is as follows:
Package com. zzw. getPhoneInfos; import android. app. activity; import android. content. context; import android. OS. build; import android. O
}$/; if (Re.test (str)) { alert ("correct"); } else{ alert ("Error");} } Checkphone ("09557777777");//CallVerify MailboxValidation rules: Leave your email address in the "first part @ Second part"The first part: By letter, number, underline, short line "-", Dot "." CompositionPart two: For a domain name, the domain name consists of letters, numbers, short-term "-", the domain name suffix,and the domain name suffix is generally.
Jquery implements the number selection method for mobile phone numbers. jquery implements mobile phone numbers
This example describes how to select a mobile phone number using jquery. Share it with you for your reference. The details are as follows:
Some time ago I saw that
1. Account numberRules: Letters, numbers, underscores, letters beginning with 4-16 digits.Expression:/^[a-za-z]\w{3,15}$/;2. Mobile phone numberRule: 11 digits, starting with 1Expression:/^1\d{10}$/3. Phone numberRules: Area code + number, area code starts with 0, 3-bit or 4-digit number consists of 7-or 8-digit number
rules: Leave your email address in the "first part @ Second part"The first part: By letter, number, underline, short line "-", Dot "." CompositionPart two: For a domain name, the domain name consists of letters, numbers, short-term "-", the domain name suffix,and the domain name suffix is generally. xxx or. xxx.xx, a domain name suffix is generally 2-4-bit, such as cn,com,net, now the domain name will be m
1, Taobao
API Address: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel= mobile phone number
Parameters:
Tel: mobile phone number
Back: JSON
2, Pat
API Address: http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile= mobile phone
: Mobile phone number nbsp; Callname: callback function nbsp; Amount: unknown (must) nbsp; return:jsonnbsp; nbsp; III, Tenpay apinbsp; nbsp; code as follows: API address: http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi? chgmobile=15850781443nbsp; parameters:nbsp; chgmobile: Mobile phone number nbsp; re
cannot begin with 0.Part Three: You can have decimals or no decimals, but once a decimal point appears, at least one digitvar reg =/^[+-]? (\d| [1-9]\d+) (\.\d+) $/;
Valid positive integer (contains 0):/^[+]? (\d| [1-9]\d+) $/;
Valid negative integer (contains 0):/^-(\d|[ 1-9]\d+) $/;
Judge mobile phone number (simple version):var reg=/^1\d{10}$/;
Judge the mailboxThe first part: numbers, letters, unde
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.