I went through some documentation regarding Phonegap. Coming from an Android background, I wanted to try out phonegap so that I could develop multiple-platform apps relatively fast, however I am uncertain on a specific point. Is it possible to install phonegap on eclipse and code a multiple-platform app from there? Or do I have to stay installing xcode, visual basic etc and coding for every one?
Can someone kindly indicate what the best practice is in this situation?
Check out this link :
Integrate Phonegap with Eclipse
That will show you step by step process.
if you want to use the same code for multiple platform then you have
to upload the code which is under www folder to Phonegap site.
They will provide you multiple builds directly. Or if you proceed
separately like Android above then you have to generate separate
builds with separate ides available like eclipse for Android and xcode
for iphone.
Thanks.
When you will download PhoneGap that will be included with an example just import that example & run that example in eclipse & go through all the files available in that Project . So that you will understand that which files you have to put where & how .
Related
I am trying to develop a phone gapp app but I find the documentation a little confusing.
As far as I understand, I can just write my app, choosing any directory layout I want except that index.html and config.xml need be on the first hierarchy level and then zip it and upload it to PhoneGapBuilder.
It says on the website of PhoneGapBuilder that I should leave the reference to the PhoneGap.js but remove the PhoneGap.js files from my project.
My question is: Where do I get that PhoneGap.js file? Do I download it from the apache cordova github repo?
Most tutorials show how to make an app using XCode or Eclipse, however, I want to use PhoneGapBuilder to be independent of any IDE and platform.
Where exactly do I get the necessary files to just start developing a phonegap app on my computer, with my editor of choice, using xampp and the ripple emulator?
Why do not you give a try to build.phonegap ?
This "build" platform is far easier for newbies than installing Phonegap and so on.
Once, you read 1 or 2 pages documentation or even if you do not read and just modify the mock up config file you will be able to convert HTML5, CSS projects to mobile apps.
I'm supposed to port an iOS app to Android. I have the iOS project in front of me but i do not have XCode to open it.
So I have some questions:
Is there a way to open the project on Windows? I DON'T need to build it or anything, I just want to see the correct file structure (because the file structure isn't the same in the project and on the hard disk).
How do you recommend to handle updates? The iOS app will always be updated first and my job is to update the Android app afterwards, according to the new iOS code. Is there a good software where I can see all the changes made to the iOS project? Or is this a stupid idea?
If you happen to know any good resources for android developers to understand the basics of iOS apps (not Objective C, more the structural aspects), let me know.
Thanks
In what format do you have it? You can use textedit or nano or vim or anything to open the individial .h and .m files.
Yes, have you heard of github? You can check the revisions. Additionally, if you know the high level feature overview of what you will be developing sometimes you may not need to see the other platforms code at all...
https://developer.apple.com/technologies/ios/cocoa-touch.html + google
I am a programmar at novice level.
I have a project that I would like to import at Intel XDK.
Link to the project
The project structure has been made in Phonegap version 2.1.
I am trying to inport the HTML5 project within Intel XDK with no luck.
I'm getting the error : index.html is missing!
Do you know if there is a way to get this project work into Intel XDK?
The html files are under the directory of assets/view. But there is no index.html.
Hope you guys could help me figure this out.
With friendly regards,
Mirjam.
The easiest thing to do would be to use a blank template to create a new project and then copy your www directory from your existing project into the www of that blank template project.
It's not clear which of your html files is the equivalent of index.html, but you might want to just re-use the index.html file that is created by the template as your index.html file and work from there.
Just a note, in general, it is hard to build multi-page hybrid apps (like yours appears to be) if you are going to be using APIs that are implemented via Cordova plugins. If you do not need any of the Cordova plugin APIs (that is, you are only using standard HTML5 APIs that are built into the webview), then you can get away with it. If you do plan to extend your app to take advantage of Cordova plugins (core, XDK or third-party) you might want to consider creating a single-page app.
Another approach to consider is displaying the "other" pages using the inAppBrowser plugin. This assumes that the "other" pages do not need access to device APIs.
It's hard to provide a precise "here's how to do it" without having a deeper understanding of how your app is structured and where you intend to go with it.
I want to create a Android Application.
Altough I want to use HTML5 for creating that application.
Later on I even want to get the application to multiple platforms like for Apple.
I have tried Eclipse but couldn't get it to work.
When I create a new "Project > Web > Dynamic Web Project" I can't export this into a Android Application.
PhoneGap looks interesting.
Although I'm not sure how you can create a .apk (for android) there.
Or should this work together with Eclipse?
Could anybody give me a headstart?
What Application should I use to make a HTML application?
How do I create a .apk file?
Thanks in advance.
If you really want to dive right into developing with Phonegap, you can try out Telerik's AppBuilder (http://www.telerik.com/appbuilder). The demo project uses KendoUI Mobile (which I can also recommend) is comprehensive enough for anyone. As far as I recall you can use it for free for up to 2 projects.
There is also Intel's XDK (http://xdk-software.intel.com/), which is completely free - but the simulator and deployment features aren't as far developed as Telerik AppBuilder's are.
I strongly recommend AGAINST doing it the "real way" with eclipse/xcode if you have no prior experience with developing native android/iOS apps.
Start with the following project:
http://code.google.com/p/html5webview/
This will give you a good start. You can download it and import it into eclipse.
Phonegap does create an APK.
Essentially what Phonegap does is present a WebView and a simple API for calling native methods on the respective platforms. This allows you to write the same app and deploy it on multiple platforms with minimal or no changes. The majority of what you would do in Phonegap is set up the projects to pull in the cross-platform libraries.
The major limitations come from lack of access to native UI components. As you progress in app development you may find that it's a significant limitation. I rarely build HTML5-based UIs anymore, and instead go with native apps.
There are other cross-platform frameworks out there as well. Here's an article describing some pros and cons of each:
http://www.developereconomics.com/pros-cons-top-5-cross-platform-tools/
I've built an Android app in the past (on a Windows machine using Eclipse), but having downloaded Ubuntu, the Android source and built it successfully (whew), I'm not sure how to tie it all together. How do I load my app into the Android that I've built?
If you really want to be building your own ROM you should head over to the Android Platform Developer's Guide and read it all through.
However if you simply want to develop your own applications then you only need the SDK (and on rare occasions when you want to add some native code also the NDK).
The easiest way to develop Android applications is by utilizing the Eclipse integration, which does most of the work for you.
You also probably want to know what all of the SDK tools (even if you are building your custom ROM) that the Eclipse plugin is using behind the scenes do, so head over to the Tools Overview.
You may want to take a look at the Android Cookbook.
It has loads of nice wee snippets of code to get you started.