Thoughts about coding and books

PhoneGap application crashing when rotating

I have seen some apps that crash when rotating from landscape to portrait or vice versa. Beginners might not have such problem as coping original PhoneGap examples with all bloating overhead works. On hte other hand some applications that I created as new project in eclipse and wrote PhoneGap app from scratch had the rotation crash issue.

It was tracked down to one line in AndroidManifest.xml. Make sure that you have Read more about PhoneGap application crashing when rotating

Jquery mobile mobileinit event not firing

Because Jquery mobile mobileinit event is triggered when mobile jquery starts to load then event listener must be binded before execution reach to loading jquery mobile javascript file. Usually mobileinit event is binded using selector $ from jquery like this: $(document).bind(“mobileinit”,onMobileInit); This dictates JS files loading sequence in PhoneGap and websites to be something like:Read more about Jquery mobile mobileinit event not firing[…]

PhoneGap vs native Android and iPhone app performance and features

Overview PhoneGap is mobile framework that allows developers to create HTML 5 and JavaScript pages and sun these inside mobile devices. Please bear in mind that “webserver” runs inside the device. It is also possible to display external pages using plugin called ChildBrowser. While PhoneGap does not support PHP it does support javascript libraries likeRead more about PhoneGap vs native Android and iPhone app performance and features[…]