I have developed one simple application in phone-gap-android using eclipse and android SDK.
As phone-gap support multi mobile platform , I want to run this application in iPhone also.
How can i achieve it ?
For each platform you want to get a port, you need to create a project in the dedicated environment and compile application as native one for each.
Your created source should be shared between project.
Then for example :
to port your application to iPhone, you need a mac with installed Xcode, iPhone SDK downloaded and phonegap one installed.
In xcode, create a phonegap project, import your sources, compile it, and it works !
Instructions on how to set up Phonegap for each OS can be found here: http://phonegap.com/start
If you are lucky, major modifications will not be needed between the devices.
An alternative would be to try PhoneGap Build: https://build.phonegap.com/
Related
I developed an android application with cordova and I want to convert it to iOS as well. Before starting my project I heard that we are able to convert same project with multiple platforms using cordova. But now I don't know how to convert my project to IOS. Can any one suggest good tutorial OR examples to do it.
And also mention what are all prerequisites to convert my android application to IOS using phone gap.
Suggest me some tutorials with examples.
First, you'll need an actual Mac computer. I suggest a MacBook Air, as they are cheaper than an iPhone. Then purchase an Apple developer license (USD 100/year) if you plan to submit this app to the App Store. Finally, you can migrate your Cordova source code to Xcode to compile the iOS version as explained in this guide:
Build Cordova iOS app from Visual Studio for Windows
The artice explains how to create a new app in Xcode and then export your source code from the Windows PC to the Mac. You can safely ignore all references to Visual Studio if you aren't using it, because it's not needed: Just follow the steps from the For your iOS app section.
I am developing currently for IOS and Android SDK. So each time i have to do an app i have to develop for 2 separate platforms which take much time. Also i am planning to develop on BB , Windows Mobile etc. I came across Phonegap and i had some questions.
First suppose i am developing on MAC OS and Xcode 4 and i have install the required SDK for phonegap i create a project using the template and start coding in HTML5/CSS3. Once the project is completed how to import it to Android platform? Should i start to create a project and adding phonegap libraries and required jar and right away i can copy paste the HTML5/CSS3 from the www folder scripts into the required directory /assets/www ? If that's the way it suppose to do then i will have to do the same for BB and Windows (of course on a Windows machine) we can do the same?
Many thanks.
build.phonegap.com will build all the needed apps from your web content.
Can we able to start an Android project in "Titanium Studio". I am using the free version of this software. If Titanium Studio is good for Android development what are the main points. How to run the application.
Yes, you can start an Android project in the free version of Titanium Studio. You can also start an iOS project.
When you develop in Titanium, your code is in JavaScript and you use special Titanium functions and objects to access the Android or iOS device. Some advantages are that if you know JavaScript you can code for Android and iOS without having to learn Java or objective-C and most of your code will be reusable if you want to later deploy your app on iOS. Some disadvantages are that there are bugs in Titanium that make some functions behave differently in Android and iOS. Also, if smart phones were to add a new device function you won't be able to access it until Titanium added that function. You give up some control for easier multiplatform deployment.
Titanium's Quick Start guide will show you what you need to do to setup your computer for Android and iOS development: http://docs.appcelerator.com/titanium/2.0/#!/guide/Quick_Start
I want to deliver a finished and working Titanium App to Android customers. But I can't find any documentation about how to produce something like a jar-file that I can create to directly install it on Android devices without the Android market or the Titanium IDE at hand (I can't expect my users to install Titanium IDE first, right).
When you do a build for device in titanium studio, titanium studio creates an apk file for you.
You can find this at Titanium Workspace/Your Project/Build/Android/bin/app.apk. This is the app file you want.
This file can be e-mailed to your customers, and if the android phone is set to accept apps from 3rd party locations, they can install it through this e-mail.
See the Appcelerator Wiki:
https://wiki.appcelerator.org/display/guides/Deploying+to+Android+devices
and
https://wiki.appcelerator.org/display/guides/Distributing+Android+apps
just wanted to clear a confusion concerning phonegap,
My area of interest is mainly Android and Iphone. What I really understand about phonegap is that the phonegap app is platform independant when no native libs are ysed and thus run both on iphone and android. Thus if i build an android app on eclipse using phonegap without using any native libs, will it run on iphone as well??
Nope, this is not exactly the case.
Phonegap enables you to write cross-platform code (HTML, JS, CSS), but when it comes to building, you have to compile this code to a specific environment for each OS. For example you can build the Android version using eclipse, and the iOS version using Xcode.
Hope this helps!
No, you will still need to build for iPhone as well.
You can use the same source code for all systems.