I have created a Android Application with one Activity and package name "com.explore"
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
I run ps Command.
USER PID PPID VSIZE RSS WCHAN PC NAME
app_137 2974 91 478604 48524 ffffffff 00000000 S com.explore
I press back button. I get out of the application and come to Home screen Now once again run ps command.
USER PID PPID VSIZE RSS WCHAN PC NAME
app_137 2974 91 472428 42572 ffffffff 00000000 S com.explore
The process 2974 is still running. Can someone please explain me the behavior? That is memory usage,state or how long the process will persist? Should I kill process from my code after pressing back? How to kill process gracefully?