Just finished reading and practicing the "20 Recipes for Programming PhoneGap" with mixed feelings: by one hand, I learned many things [ I am a beginner in this kind of programming], and by the other hand I accumulated huge amounts of frustration, because the explanations were pretty laconic, non intuitive, and some examples didn't work to me.
For the good things, I would say that each recipe got me learn jQueryMobile and the PhoneGap API. The examples are interesting and useful for the future hybrid apps I may write sometime. I liked that, when explaining the "Accessing the Camera and Photo Album", the author realized that in the simulator we cannot use the camera [seems to be a bug introduced with Android 2.2], and explained how to use the photo library instead. This was helpful especially for the next chapter, which demonstrated how these images could be sent to a remote server. I would only add [for other readers] that, in order to get the pictures in the simulator, one may use the simulator's web browser app to download images from internet.
Unfortunately, not all things were so good:
- The very interesting recipe "Saving data to a Remote Server" didn't work, [at least with author's server].
- The last recipe, "Extending PhoneGap with Plug-ins", was quite disappointing, as, right in the middle of the implementation, the author "sent" me to get code from another website, which I could not compile as it had quite a lot of dependencies. I believe that a simpler and self contained example would be more useful.
There were some other minor things, such as the omission of the "images"sub-directory in the css directory, or the need to make the "intervalID" variable global in the common.js [in the HelloWorldPhoneGap.zip file that accompanies the book ]