phonegap的Android頁面中,點某個鏈接可以直接到發送短信頁面或者發送郵箱頁面或者撥打電話頁面等,可以用<a>標籤實現,與普通html沒有區別。但是在phonegap中需要配置權限。
關於<a>標籤的使用,參照:http://huzhupo.iteye.com/blog/2210522
<widget id="com.example.hello" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="loglevel" value="DEBUG" />
<name>HelloWord</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<access origin="*" />
<access origin="tel:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
<access origin="market:*" launch-external="yes"/>
<feature name="EmailComposer">
<param name="android-package" value="de.appplant.cordova.emailcomposer.EmailComposer" />
</feature>
</widget>