- Find the SDK directory where you installed your keys
C:\Eclipse-3.5.2\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\
<feature id="blackberry.invoke" /> | |
<feature id="blackberry.invoke.BrowserArguments" /> | |
<feature id="blackberry.identity" /> |
# | |
# Package and Deploy to the Playbook | |
# | |
# Getting Started: | |
# | |
# 1. Update ADDRESS with your Playbook IP Address | |
# 2. Update PASSWORD with your Playbook password | |
# 3. Update SDK_DIR with the path to the Playbook WebWorks SDK | |
# | |
# Usage: |
(function(window, document) { | |
/** | |
* Do not use thumbs.js on touch-enabled devices | |
*/ | |
if (document.ontouchstart) return; | |
/** | |
* Map touch events to mouse events | |
*/ |
* { | |
-webkit-touch-callout:none; /* prevent callout to copy image, etc when tap to hold */ | |
-webkit-text-size-adjust:none; /* prevent webkit from resizing text to fit */ | |
-webkit-tap-highlight-color:rgba(0,0,0,0); /* prevent tap highlight color / shadow */ | |
-webkit-user-select:none; /* prevent copy paste, to allow, change 'none' to 'text' */ | |
} |
input[type="text"] { | |
-webkit-appearance:none; /* Remove default shadow */ | |
border:1px solid black; /* Possibly apply a custom border */ | |
} |
/** | |
* Note: the following function should already exist in your application delegate file. | |
* Replace it with the following implementation. | |
* | |
* Thanks to @purplecabbage for implementation. | |
* Thanks to Ruddiger for the iFrame patch. | |
*/ | |
// ... |
// ... | |
- (void)webViewDidStartLoad:(UIWebView *)theWebView | |
{ | |
// disable telephone detection, basically <meta name="format-detection" content="telephone=no" /> | |
theWebView.dataDetectorTypes = UIDataDetectorTypeAll ^ UIDataDetectorTypePhoneNumber; | |
return [ super webViewDidStartLoad:theWebView ]; | |
} |
// | |
// only invoke the browser when using BlackBerry WebWorks | |
// | |
if (typeof blackberry !== 'undefined') { | |
var args = new blackberry.invoke.BrowserArguments('http://phonegap.com'); | |
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args); | |
} |
(function() { | |
var Battery = function() { | |
return { | |
// | |
// Get a battery property | |
// | |
// @param property to get. Only 'Power' is supported. | |
// @param successCallback is provided an argument { level: [0, 100] } | |
// @param errorCallback is called on any native error and provided a message | |
// |