title: How to create a barebones Phonegap project
body: <p>I am in the process of setting up headless, Ubuntu 14.04, server to enable me to automate (script) the process of producing Android APKs with Phonegap.  I have done the following</p>
  
  <ul>
  <li>Install Java JDK</li>
  <li>Install ANT</li>
  <li>Install the Android SDK</li>
  <li>Setup the environment path</li>
  <li>Created a test project following the instructions in the <a href="http://phonegap.com/install/" rel="nofollow">Phonegap CLI documentation</a>.</li>
  <li>Issued a <code>phonegap build android -d &gt;&gt; result.txt</code> to have the APK created under `/app-folder/platforms/android/build/outputs/apk'</li>
  <li>Moved the APK to a folder on my Dropbox</li>
  <li>Opened, installed and tested the APK on my Android phone</li>
  </ul>
  
  <p>All crystal clear and pretty smooth sailing.  However, here is where I run into several unknowns.</p>
  
  <ol>
  <li>The `/app-folder/config.xml' file is relatively easy to understand but it would still be nice to have a comprehensive resource or cheatsheet that explains all the stuff I can put in config.xml.  The Phonegap docs are helpful but a succinct cheatsheet would be nicer.  I haven't been able to find one.</li>
  <li>Ultimately, I want to build my own APKs.  Just how should I go about that without starting from scratch.  Can I use the default Hello World project and do the following</li>
  </ol>
  
  <p>xxx</p>
  
  <ol>
  <li>Change the name, description and author attributes in config.xml</li>
  <li>Replace the #dpi and port-#dpi images </li>
  <li>Bind to the <code>load</code>, <code>deviceready</code> <code>offline</code> and <code>online</code> events to do my own stuff</li>
  <li>Do what with the various <code>allow-intent</code> fields?</li>
  <li>Do what with the various files in the <code>spec</code> sub folder?</li>
  </ol>
  
  <p>Finally, I imagine that using all the various plugins that are there in the config.xml file for the hello world app</p>
  
  <pre><code>&lt;gap:plugin name="org.apache.cordova.battery-status" /&gt;
  &lt;gap:plugin name="org.apache.cordova.camera" /&gt;
  &lt;gap:plugin name="org.apache.cordova.media-capture" /&gt;
  &lt;gap:plugin name="org.apache.cordova.console" /&gt;
  &lt;gap:plugin name="org.apache.cordova.contacts" /&gt;
  &lt;gap:plugin name="org.apache.cordova.device" /&gt;
  &lt;gap:plugin name="org.apache.cordova.device-motion" /&gt;
  &lt;gap:plugin name="org.apache.cordova.device-orientation" /&gt;
  &lt;gap:plugin name="org.apache.cordova.dialogs" /&gt;
  &lt;gap:plugin name="org.apache.cordova.file" /&gt;
  &lt;gap:plugin name="org.apache.cordova.file-transfer" /&gt;
  &lt;gap:plugin name="org.apache.cordova.geolocation" /&gt;
  &lt;gap:plugin name="org.apache.cordova.globalization" /&gt;
  &lt;gap:plugin name="org.apache.cordova.inappbrowser" /&gt;
  &lt;gap:plugin name="org.apache.cordova.media" /&gt;
  &lt;gap:plugin name="org.apache.cordova.network-information" /&gt;
  &lt;gap:plugin name="org.apache.cordova.splashscreen" /&gt;
  &lt;gap:plugin name="org.apache.cordova.vibration" /&gt;
  </code></pre>
  
  <p>is liable to bloat the app so I assume I should be more selective about what I leave behind there on a per-app basis?  And last but not the least just how do I go about modifying this basic app to sign it for the real world?</p>
  
  <p>I only got started on this process about 6 hours ago and am quite surprised that thus far it has turned out to be so easy.  However, I have been unable to find any tutorials that go further than telling me how to install phonegap-cli and then build hello world.</p>
  
  <p>I would much appreciate any help and tips.</p>
  
  <hr>
  
  <p>I have since discovered that one can create a barebones Phonegap app in the CLI starting from one of many templates.  You can view the templates on offer  by issuing</p>
  
  <pre><code>phonegap template list
  </code></pre>
  
  <p>The <code>jquery-mobile-starter</code> template I have found is a decent starting point.  Some progress but I still haven't figured out which of the config.xml settings - particularly the plugin and allow-intent ones I need to modify on a per app basis depending on what it is being used for so I would still appreciate help here.</p>