This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void checkPermissions() { | |
// Capture the current state of permissions and check against the requirements. | |
ApplicationPermissionsManager apm = ApplicationPermissionsManager.getInstance(); | |
ApplicationPermissions original = apm.getApplicationPermissions(); | |
if (original.getPermission(ApplicationPermissions.PERMISSION_INPUT_SIMULATION) == | |
ApplicationPermissions.VALUE_DENY) { | |
apm.addReasonProvider(ApplicationDescriptor.currentApplicationDescriptor(), new ReasonProvider() { | |
public String getMessage(int i) { | |
String msg = "I need the permissions in order to work properly."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" id="viewport" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no"> | |
<script src="json2.js" type="text/javascript"></script> | |
<script src="phonegap.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// invoked when device is ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" id="viewport" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no"> | |
<script src="json2.js" type="text/javascript"></script> | |
<script src="phonegap.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// invoked when device is ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxies: { | |
Contacts: { | |
actions: { | |
search: { | |
path: 'cordova/proxies/blackberry/contact_search' | |
}, | |
save: { | |
path: 'cordova/proxies/blackberry/contact_save' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
COD_FILE='Z:\\Work\\Eclipse\\WSPhoneGap\\sample\\build\\StandardInstall\\CordovaSample.cod.pending' | |
SIMULATORS="/cygdrive/c/BBWW/simpack" | |
SIMVER='7.0.0.318' | |
SIMPATH="$SIMULATORS/$SIMVER" | |
$SIMPATH/fledgecontroller.exe "/execute=LoadCod($COD_FILE)" | |
$SIMPATH/fledgecontroller.exe '/execute=LoadCod("updates.force")' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" id="viewport" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no"> | |
<script type="text/javascript" src="cordova-1.8.0.js"></script> | |
<script type="text/javascript"> | |
function deviceInfo() { | |
console.log('Cordova initialized'); | |
document.getElementById('hello.cordova').innerHTML = 'Hello world from Cordova ' + device.cordova; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<title>Test Bug</title> | |
</head> | |
<body> | |
<script src="bundle.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
</head> | |
<body> | |
<script src="bundle.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description | Function (Bytes) | Class (Bytes) | Difference (Bytes) | |
---|---|---|---|---|
Stateless | 96 | 276 | 180 | |
State | 224 | 483 | 259 | |
Render Optimized | 297 | 542 | 245 |