I made an application with PHP & jQuery mobile, and now I\'m looking for how to convert this application to an apk file using PhoneGap.
Is it possible to do this? An
This is a fast a simple way to do it, it is better if you extended to make more real life usage:
1- download phonegap
2- Build your first app using this tutorial or using the phonegap how to get stared
3- once you have that let's go server side.. we need a API, the simplest way to do this is like this:
gethome();
echo($jsonReturn);
}
?>
4- create that controller to control the request from the API, for example something like this:
0){
while($us = mysql_fetch_assoc($yourqueryResult)){
$output[]=$us;
$homeJsonResponse = json_encode($output);
}
return $homeJsonResponse;
}
}
?>
5- We are back to the phonegap application, now make sure you are including all needed files, jquery, jquerymobile, cordovajs, itouch, iscroll....
6- create the function that will execute on load and make the ajax call to the api, this will return json, just parse with jquery, and you are good to go.