views:

173

answers:

3

Hi, I was looking into PhoneGap and Titanium framework, and I did not clearly understand how to they work, let's suppose I have already developed an app for android or iphone, can I run this app on another mobile with a different OS with PhoneGap or Titanium help?

Or I have to develop again my app with PhoneGap/Titanium framwork? In this case I have full support at all the features like thread, JSON or XML parsing and so on? Thank you

+1  A: 

PhoneGap basically takes a client-side web app (HTML, CSS, JavaScript) and wraps the whole thing in a native device's web view control. You can hook to some of the device's native functions, but as you can guess, it's pretty limited compared to native development. But easy, and brings in a whole range of skills that a lot of people already have. That's really the appeal of PhoneGap.

Titanium is also html/javascript oriented, but it actually claims to compile to native code. Their sample "kitchen sink" app demos quite a lot of the native APIs, at least for the iPhone. I doubt you'd be able to deal directly with threading, but JSON for sure, and I'd think XML as well.

Dan Ray
Yes it can handle XML and JSON. There's no direct threading support, however Titanium Window objects run in a separate thread.
Alan B
A: 

The idea behind phone gap is that you can take a browser based client app that is written in html/css/javascript and use phonegap to gain access to some native mobile hardware like contacts, gps, accelerometer, etc. Phonegap allows you also to build this web app for different mobile devices all using the same web app code.

BrennaSoft
A: 

Titanium has full support for JSON or XML parsing. You can see Titanium examples - Kitchen Sink - for more details.

anticafe