title: How to resume a cordova app instead of restarting
body: <p>I have made a default cordova app and adjusted only the index.html file:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;body&gt;
      &lt;div id="d"&gt;&lt;/div&gt;
        &lt;script type="text/javascript"&gt;
          var $_d = Math.round(999 * Math.random());
          document.getElementById('d').innerHTML = $_d;        
        &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I build and install the app on my phone, the app will restart every time I restart the app through the short cut or when I click the app in the list of active apps. I notice the app has restarted, since the displayed number has changed. I would hope to prevent the app from restarting, so the number is not changing. </p>
  
  <p>I have tried to accomplish this by adding &lt;preference name="AndroidLaunchMode" value="singleTask"/&gt; to the config.xml file. The AndroidManifext.xml is updated as a result, but it doesn't have the desired effect.</p>