app is exiting I guess after sometime after pressing the home button
<p>App has 2 screens : 1>Login --- 2>Maps .I am calling finish() on login activity and no finish() is called in Maps activity.
 Google Maps has the following code in Manifest file:   </p>

<pre><code> &lt;activity
            android:name=".Maps"
            android:allowTaskReparenting="true"
            android:configChanges="keyboardHidden|orientation"
            android:launchMode="singleInstance"
            android:theme="@android:style/Theme.Light.NoTitleBar" &gt;
        &lt;/activity&gt;
</code></pre>

<p>And I am using the following code:</p>

<pre><code>ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
        executor.scheduleWithFixedDelay(new Runnable(){

            public void run() {

//update data to server

            }

    }, 0, 600, TimeUnit.SECONDS);
</code></pre>

<p>But the code below is not executing every 10 mins and I guess the app itself exits as ,After 10 mins when I open the app from recently opened apps by pressing and holding home button .     </p>

<p>It starts from ONcreate() I guess .     </p>

<p>I dont know how to resolve it.</p>

<p>Please Help me out.     </p>

<p>Thanks in Advance. </p>
