Setting up phonegap development environment - html

I am working on the windows-8 PC. And i have some HTML app gui which i want to convert to android mobile app.
I am new to phonegap.
How to setup the development environment for phonegap?
1> Following tool android developers app tells to use phonegap cli to create new project :--
http://phonegap.com/blog/2014/04/23/phonegap-developer-app/
This video uses Android sdk to create new project :--
http://www.youtube.com/watch?v=MF6dzbTDwdY
Which is the best methord to start working with phonegap ?
Do we need android SDK if we work with phonegap cli ?
2> This link tells to use commandline or IDE methord to create phonegap projects :--
https://github.com/phonegap/phonegap/wiki
3> What exactly is the relation between android SDK & phonegap cli .. ?

i would recommend you to use Cordova. Why? Yes, there is no realy reason why to do this, It's rather a question of what you like to work with.
I'm using Cordova. Maybe you read the Getting started guide and then the following documentation.
After you installed all, you can open up the CMD and create a new cordova project. If you want to know, how to do this, go on with the posted link above. A little bit under the setup instructions you can find a Guide which explains you, how to setup a new project and so on.
If you work with Cordova, you need Eclipse and i would recommend you to install Genymotion for having more options of deploying an app to a device.
Later on, if you would like to convert an Application to another platform you can use the Phonegap Build from Adobe. But normaly you can use your code like you wrote it for android 1:1 for iOS. Maybe there are some tiny differences, but they would'nt be fixed by the phonegap build i think. So... i would say there is no way to say "You should work with Phonegap" or "You should work with Cordova" it's your choice.

If you want to build app for android locally you'll need android SDK. This is because phonegap/cordova uses the android SDK to wrap the app.
Basically phonegap/cordova uses the SDK to compile the project for android platform and to build the APK file which can be installed in devices. You can interpret as Phonegap/cordova cli is an interface between android technology and cross platform technology. Similarly iOS will need some native technology to work with phonegap. Thiese SDK helps to build and package the app for their own platform which you've written in HTML/CSS/Javascript.

Related

Can I port libGDx game to Tizen OS?

Is the way to do that? Some libraries or suggestions?
I haven't found any information about this
I found 2 ways:
1.POLARIS App Generator An Easy way porting Android App to TIZEN.
2.Port libGDX core project to html5 project using Google GWT plugin and than run this project on TIZEN emulator.

deploy cocos2dx existing ios project for android platform

I have a cocos2d-x project in ios platform and I want to deploy this project in android as well.Please help me and explain the steps for it.My cocos2d-x project contains Box2d features into it.
You have to create a sample project for the Android using cocos command and then need to configure some basic parameters. Check out wiki linked on official site .
https://github.com/chukong/cocos-docs/blob/master/manual/framework/native/getting-started/v3.0/how-to-start-a-new-game/en.md

Test Flash generated .IPA, using Testflight

It's posible to install a Flash generated .IPA using TestFlight ?
I need to test my app in a few number of ipads, for private (not public) use.
Thanks.
I haven't used it myself, but there's a native extension for TestFlight provided by Adobe.
It comes bundled with the Adobe Gaming SDK (maybe you can download it separately).
Here's the documentation.

How to change config settings on local ios phonegap build from the new Phonegap CLI?

FYI; Phonegap CLI: http://log.michaelbrooks.ca/post/phonegap-cli-preview
So, after making a build with the new Phonegap CLI, getting a project with the new Phonegap 3.0, I wanted to run my application on an ios simulator:
> phonegap local run ios
This successfully install the phonegap application onto the IOS 6.1 simulator and runs it- all good so far. Problem is that all REST-functionality is not working. I dig around and find out that the phonegap local run ios automatically creates a ios xcode project at /platforms/ios/. Inside this folder I can locate a config.xml-file with access origin set to only allow http://127.0.0.1*. Now, I want to change this, so I do. Problem is that when I run phonegap local run ios again the old config file is back.
So basically, the questions end out in:
How do I change the Phonegap configuration settings when using Phonegap CLI?
Ah, I feel very embarrassed now, but I think its better to share then to delete :)
If you have a config.xml file in your www-folder (which shipped originally, but I have removed) you can change the values from there. This file will be copied over.
So in my config.xml-file inside my apps www-folder I found:
<access origin="http://127.0.0.1*"/>
Just before the last tag, . I changed this to:
<access origin="*"/>
And then everything worked :)

Creating Cocos2dxGame for iOS using eclipse on Windows Machine

I am using windows machine and trying to make a game for iOS in cocos2dx. The editor I am using is Eclipse. Version of cocos2dx is latest.
I have followed many tutorials but not a single tutorial guides me how to code in eclipse for iOS using cocos2dx.
I have seen Classes folder which contains Appdelegate.h and cpp along with helloworld.h and cpp.
When I create a new android project using existing project, i am unable to find classes folder.
I need help on how to get started.
Thank you