On the overview page of sencha touch it is written that Sencha Touch works hand in hand with PhoneGap and it is also written :"PhoneGap also enables developers to utilize native device APIs — like the Camera and Contact list — directly in JavaScript."
How can Sencha Touch work hand in hand with PhoneGap. PhoneGap surely has a different API than Sencha Touch.
I've played with phonegap a bit. Phonegap has it's own javascript API for doing things that are outside of what Sencha Touch allows you to do. The vast majority of my Sencha Touch code required 0 changes to have phonegap build and deploy to my iphone correctly. If I wanted Camera access (let's say to take a picture and show it), I would access the phone and take the picture via the phonegap api, locate the file with the phonegap api, then build what I could in sencha to display a file, then hook it together.
Do you know how PhoneGap builds a native App out of you Web-App which you have created using Sencha Touch? Does it have a Compiler or anything like that or how else can Phonegap build a native APP out of a HTML file?
Phonegap dont build an app starting from html/javascript/css (as titanium appcelerator do), it's simply wrap this stuff in a webui, for more detail http://www.phonegap.com/start
Do you know how PhoneGap builds a native App out of you Web-App which you have created using Sencha Touch? Does it have a Compiler or anything like that or how else can Phonegap build a native APP out of a HTML file?
It uses the Webkit Safari libraries. You have to use XCode to compile, of course, but it's relatively painless. Move the Ext.Setup(...) into a PhoneGap javascript bootstrap method like dobodyonload or something and you're basically ready to compile.