It is better to first call StopService.
It should work assuming that the service is part of the same application. It will kill the process. Android may restart the process automatically. But FirstTime will be true in that case and it will start from Activity_Create.
oh, i understand. but this is something that i dont really want.
the thing is that if the app was closed from the homebutton than it will run in background and because i have some CLV with images in it, it usage something about 100MB ram.
the problem is if you have any CLEANxxx (RegClean,..) App you start get warning after x minute about an app that consume a lot RAM in background so my client ask me to kill the process after 10 minute so if a user has such a CLEAN app installed he wont get warned.
and if the app will restart then this is something i dont really want.
i could clean the CLV on Activity_Pause but when the user return it will take again about 3 sec to rebuild all CLV's so i would like to keep them running for few minutes because it happens that the user return after 1-2 min and i would like to have a quick start. but after 10 minutes the app should be killed like i would call ExitApplication from it.
is something like this possible?
thank you