Eclipse: one PhoneGap project for iPhone and Android? - iphone

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.

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.

Titanium and PhoneGap

I'm new to Titanium and PhoneGap and analyzing a bit the two is not possible to develop iPhone with a PC with windows using either of the two right? Well I mean in PhoneGap in the most current versions is only possible to develop without publication.
I wonder if this is actually correct and whether there is a way to make an application to one of these two technologies (Titanium and PhoneGap) Fragment as a view of the native Android devices for both Android and iPhone / iPad. Improving question, make an application to view the devices can be adapted for smartphones and tablets for better use of the screen?
If yes there is some example code and/or source of research?
PhoneGap has an offering called PhoneGap build which just came out of beta. It lets you build your apps in the cloud without a Mac.
You might still need a Mac for certificate (p12 bundle) generation or you can use a service like Mobundler.
For Titanium, a recent service called Foundry22 lets you build your apps without a Mac or any native SDKs installed locally. You just need Titanium Studio and a hosted Git repo.

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.

Testing native mobile apps

I am testing a native mobile app that has been developed for the iPhone, and I am trying to find an emulator that will run on Windows. I have found a lot of emulators, but their description is for mobile web apps, but the app that I am testing, and will be testing, is for native apps. Does anyone know of an iPhone emulator for Windows to test native apps?
Nope. There's no such program out there currently. If you're doing iOS development, you more or less need an Intel-based Mac.
This isn't possible as Native Apps are specifically for them, platforms.
If you would like to develop multi-platform app, i would advise a Mobile Web Application.
SeeTest enables you to connect IOS emulators and to test native applications.
See here: http://experitest.com/studio/help2/WebHelp/Connect_iPhone_emulator1.htm
No solution for that to my knowledge. The only way I can think of would be to use Hackintosh with Xcode.

Building iPhone app on linux

Hi all is there way to build iPhone app on linux without using xcode.I want to make use of ant.
No, there is no way to build iPhone apps on anything other than Intel Mac's. Even third party app development kits like appcelerator require the iPhone SDK to be installed in the background
Another solution, but again is not possible to compile without a Mac, is Haxe: http://gamehaxe.com/2009/05/22/haxe-on-iphone-simulator/
You need to have a MAC to install iPhone SDK, even with tools such as MonoTouch (which lets you develop in C# instead of Objective C) you still need MAC for the SDK.
Right now the only way is using MonoTouch but is using C# and is not free software.
You can develop and write for the iPhone on linux, but there is no way to compile it to an iPhone app and/or check if your code is working properly.
You'll need a mac for that or MonoTouch as said above.
If you want to create games, you can use Unity 3D but that also is not free software.