If you need to call, call sms, send email, and other functions in a mobile browser, the interface provided by mobile WEB page (HTML5) Javascript is a good solution.
Using url links, you can call Safari ios, Android, webos, Saipan, IE, Operamini, and other mainstream browsers.
1. Call
+ (Plus sign) can be added before the phone number to indicate the international number. For example:
The most common WEB page JS supports one-click dialing.
Example:
1 <a href="tel:10086">10086</a>
Call using the wtai Protocol
1 <a href="wtai://wp/mc;10086">10086</a>
2. SMS
If you need to call the SMS interface, you can write the link in the following format:
1 sms:<phone_number>[,<phone-number>]*[?body=<message_body>]
For example:
1 <a href = "sms: 10086"> send a text message to 10086 </a> <br/> 2 3 <a href = "sms: 10086? Body = cxye "> send a text message with the content" cxye "to 10086 </a> <br/> 4 5 <a href =" sms: 10086, 10010? Body = cxye "> send a text message with the content" cxye "to 10086 and 10010 </a>
3. Mail
Use mailto just like normal html
1 <a href="mailto:test1@163.com">mail</a>2 3 <a href="mailto:test1@163.com,test2@126.com">mail</a>4 5 <a href="mailto:test1@163.com?subject=Testing">mail</a>6 7 <a href="mailto:test1@163.com?subject=Testing mailto&cc=test3@126.com">mail</a>
4. Android Market
If you want a link to activate the Android Market function, you can write the link as follows:
1 <a href="market://search?q=[query]">Android Market link</a>
<Query> is the search content and the name of your application.
Example:
1 <a href="market://search?q=MyApp">MyApp</a>
5. GPS for map Positioning
1 <a href = "geopoint: [longitude], [latitude]"> my location </a>
For example:
1 <a href = "geopoint: 108.954823, 34.275891"> my location </a>