In fact, the structure of the PhoneGap project and the structure of the Eclipse project are somewhat different. But they work in a similar way. If you want to create a phonegap project in eclipse, you need to create html,js,css in the asset/www folder. The java source files will be in the src folder (as usual).
If you want to create a project without eclipse, for example, using the phonegap/cordova create MyApp , you will get the entire java source file in the project/platform/android folder and html, js, css in www , which will be automatically created. On the other hand, in eclipse you have to create this www folder manually.
But the project is compiled in the same way as it is created in eclipse (IDE) or in another text editor.
I have experience in both Eclipse and Text Editor (SublimeText, Vim). I prefer a text editor, because Eclipse once creates a problem, and it needs some additional things, such as creating a www folder and hosting all scripts, templates, css, etc. Manually.
If someone wants to go with the CLI, I think SublimeText, Vim, gEdit, etc. is the best choice for coding.
user3755008
source share