My android app crashes after getting killed by task manager , How to resolve that?
<p>my problem: if my app is going to be destroyed by a task manager on the phone, after restart the app it show me Force close . in my app in calling WebServices in BackGround, when i Kill my app using Task Killer and i Start my app again it shows me Force Close .</p>

<p>Actually i want when app is killed by Task Killer i want to show loing Screen ,can any buddy tell me any solution for that .
Thanks in advance</p>

<pre><code>04-03 17:40:55.801: E/AndroidRuntime(4825): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.palewar.coinop/com.palewar.coinop.NewTransaction}: java.lang.NullPointerException
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.os.Looper.loop(Looper.java:130)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.ActivityThread.main(ActivityThread.java:3683)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at java.lang.reflect.Method.invokeNative(Native Method)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at java.lang.reflect.Method.invoke(Method.java:507)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at dalvik.system.NativeStart.main(Native Method)
04-03 17:40:55.801: E/AndroidRuntime(4825): Caused by: java.lang.NullPointerException
04-03 17:40:55.801: E/AndroidRuntime(4825):     at com.palewar.coinop.NewTransaction.onCreate(NewTransaction.java:855)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-03 17:40:55.801: E/AndroidRuntime(4825):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
</code></pre>
