Android process has died after background
<p>I have a chat app, that is uses one thread for the socket. 
My probleme is: after I going to background, sometimes the app is killed my the launcher in phones. </p>

<p>On TABLETs every background/foreground operation has a "app died, killed by launcher"</p>

<p>How can I solve this?</p>

<p><strong>UPDATE:</strong></p>

<pre><code>   &lt;activity android:name=".ChatStart"
              android:label="@string/app_name" 
              android:launchMode="singleTop"
              android:configChanges="orientation|keyboardHidden"
              android:screenOrientation="landscape" 
              android:windowSoftInputMode="stateHidden|adjustPan"

              android:theme="@android:style/Theme.NoTitleBar" 
              &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
</code></pre>

<p><strong>How can I rewrite it as a Service? Is it an easy way to do it only in the manifest?</strong></p>

<p>thanks, Leslie</p>
