Porting Android Application to Iphone - iphone

I have implemented an application on Android using phonegap and Jqtouch. Its working fine.
I would like to test the same on iPhone. Could you please suggest me , how to test it on IPhone? Does it required any additional components to test it?

go on http://www.phonegap.com/start/ if you had used phonegap and check for ios.
Definitely, you need MAC, developer certificate ($99 atleast), XCode (4 gb)
and it is not easy to upload on app-store as in android market.

Related

How to test iphone phonegap app on device without mac and xcode?

I build a phonegap app and want to test it on my iphone without jailbreak it.
I use windows and do not own a mac.
I have an apple developer account.
Is it possible to test my app without jailbreak, xcode and mac?
Thanks!
Phonegap Developer app (http://app.phonegap.com)
It's not perfect (some of the plugins are a little out-of-date), you can only use core plugins, etc., but it does work.
If you need custom plugins or plugins not included in the distribution (or newer versions of those plugins), you're sadly out of luck, I think. If you're feeling adventurous, google for "iOS toolchain Windows" (Or Linux). You /might/ get lucky, but there's not going to be any real support for it.
if it's just phonegap app, Try using ripples phonegap emulator PhoneGap emulator
Else copy all the static HTML & JS files and load them in your phone. Open the index file in the mobile browser.

Questions on Cross platform mobile app development

I have the following queries on using phonegap / Titanium appcelarator for our cross platform mobile development
Currently we want to develop iPhone compatible and android compatible app with single source code using the cross platform mobile SDKs
Can this phoneGap or Titanium appcelarator works with single source code on both the iPhone and Android platforms?
also is there any other platform works as such?
And how these application will be relased with Appstore / Android market place since they have single code base ( source code ).
Any helps would be greatly appreciated.
I have tried out Sencha Touch with PhoneGap and also Titanium.
Sencha touch is pretty easy as it is based on javascript and can be used with android and iphone. The app created with Sencha touch can later be wrapped inside phone gap and submitted to the appstore.
Titanium again uses javascript but they do some processing on it. So the app is native.
They do have some common api's that can be used for both iphone and android. But for some advanced features they have 2 seperate sets of api's for both android and iphone.
So both have some differences. And they are both acceptable in Appstore and android market place.
I have not tried Titanium, but one of my friends is using Corona. He said its support Android and iPhone, and easily port over. You will need at least, adjust the image size, AFAIK, the image size for iphone and androids(various size) are different.
Corona: Write once, build to both iOS and Android.
corona concentrates on games. it uses lua. if you want to build a cross platform application you should first design your application cross platform. android and ios are different os with different style guides.
i have experiences with titanium and it worked fine. but i experienced that a cross platform design is important since the most time of building the app was used for programming the user interface. so invest time in building a good mvc design and ui. after that it worked out easily.
Find answers for you question below.
Can this phoneGap or Titanium appcelarator works with single source code on both the iPhone and Android platforms?
Yes It can definitely work with single code base. in addition to this you can develop universal App that can run in tablet and handheld from single code base
(NOTE: however on some point you have to differentiate between iOS and Android as some of the functionalities are specific to iOS or Android System. Titanium provide constants to check between iOS and android. It also provides constants to differentiate between Tablet and Handheld devices)
also is there any other platform works as such?
Other than Android and iOS titanium provides support for blackberry and mobile web platforms also.
And how these application will be relased with Appstore / Android market place since they have single code base ( source code ).
You can build App for required platform from titanium it self.

Eclipse: one PhoneGap project for iPhone and Android?

I'm trying out PhoneGap, so I followed the instructions to create an Android Project in Eclipse.
But now I'm wondering how I can use this same code for building an iPhone app.
Is there something like a hybrid project in Eclipse!?
UPDATE:
I realize now that it's not possible to use PhoneGap on Windows to develop iPhone apps? That's too bad... is there any way to use PhoneGap on Windows to compile for iOS ??
In theory PhoneGap build should allow iPhone development on Windows.
However Nitobi was bought out by Adobe (PhoneGap:Build service may have changed), and you may still need iOS to upload your app (might be able to get around with a jailbroken iOS?!).
A dodgy solution could be to install OSX in a vbox virtual machine :)
No, there is no way to develop iPhone app on Windows using PhoneGap or Titanium.
Because they need iPhone SDK and Android SDK on back-end, which is not possible on windows environment. However you can make both apps on iOS simulations.

using iPhone as android application development, testing phone

Can i use my iPhone for android application development testing?
By using some hacks, you can do so. But what will be the use of this? The users of your application will use it on an Android phone, not on iPhone. If you don't have an Android device, you can test your apps on emulators of different versions.
Actually, it may be possible:
http://www.youtube.com/results?search_query=android+on+iphone&aq=0
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=how+to+install+android+on+iphone
Just try to install Android on your iPhone.
Does your iPhone run Android? Probably not, so no you can not use your iPhone to test apps that were built for Android.
You can install Android on an iPhone, but I don't know about developing.
For iPhone 2G: http://www.iphoneheat.com/2010/05/install-android-on-iphone-3g-2g-iphodroid/
3G/S: http://www.youtube.com/watch?v=cB9e3Cb-H4I
(Nothing available for iPhone 4 yet, but it is coming soon: http://www.redmondpie.com/android-on-iphone-4)
This is still a preliminary version, and is buggy, as a lot of the drivers don't work. This could limit it from being used for Android development.

Iphone/Jqtouch Testing without iphone

I am developing web application using jqtouch. But I don't have iphone/ipod touch. what is the best way to test html generated out of it with jqtouch.
Thanks
coool
Download and install XCode from the Apple website.
It includes an iPhone/iPad simulator, with Safari, that you can run on your system.
If you develop on MacOS, use iPhone emulator otherwise use Safari.