What the hell are hybrid apps?
Anam Ahmed
 /theanam /theanam@mranam

Hybrid?
Huybrid apps
We'll cover more on : Phonegap
So, you just need : HTML5
Device access?
Some code, maybe?
The common Structure
Navigator.device
.functionName([someParams],
successFunction,
errorFunction,
[paramsCanAlsoBeHere]);
Camera
navigator.camera.getPicture( cameraSuccess,
cameraError, cameraOptions );
function cameraSuccess(base64data){
//do anything with image
}
function cameraError(errorMessage){
//provide sad error message maybe
}
GPS
var onSuccess = function(position) {
//do something with location
};
// onError Callback receives a PositionError object
//
function onError(error) {
//Error handling
}
navigator.geolocation.getCurrentPosition(onSuccess, onError);
Touch events
Performance?
Options available :)
What the hell are Hybrid Apps?

What the hell are Hybrid Apps?