Professional Documents
Culture Documents
PhoneGap Final
PhoneGap Final
Text
. iOS - http://phonegap.com/start#ios-x4
. Android - http://phonegap.com/start#android
. Blackberry - http://phonegap.com/start#blackberry
. Windows Phone - http://phonegap.com/start#wp
. WebOS - http://phonegap.com/start#webos
. Symbian - http://phonegap.com/start#symbian
export
PATH=${PATH}:/myfolder/adt-bundle/sdk/platform-
tools:/myfolder/adt-bundle/sdk/tools
Android SDK (Windows 7)
Make sure you have both java and ant installed on your
system
;C:\myfolder\adt-bundle\sdk\platform-tools;C:\
myfolder\adt-bundle\tools
Android Project Creation
$ cd hello
$ cordova build
Android Project Modification
Make sure you have installed the latest Xcode from the App
Store
$ cd hello
Full screen:
<preferencename="Fullscreen" value="true" />
Device orientation:
<preferencename="Orientation" value="landscape" />
Disallow overscroll
<preferencename="DisallowOverscroll" value="true"/>
Background color
<preferencename="BackgroundColor" value=“0xff0000ff"/>
<featurename="Device">
<paramname="android-package"value="org.apache.cordova.device.Device"/>
</feature>
<featurename="Device">
<paramname="ios-package"value="CDVDevice"/>
</feature>
Whitelist
Restricted by W3C for security reasons
Examples:
. http://google.com/*
. http://maps.google.com/*
. http://*.google.com/*
. http://www.google.com/mobile/*
. *://google.com/*
Whitelist in Android, iOS and WP7 / 8