0

I have seted a service and it use start Forground , so android will not kill it , but when I press Clear Memory in task manager , it will close my service , where is problem , if you tr this with build in media player , android will not kill it at all

I have use start_stricky and Notification.FLAG_FOREGROUND_SERVICE

if I use NO_CLEAR , there is not diffrence

how can I solve this problem ?

thanks

Ata
  • 12,126
  • 19
  • 63
  • 97
  • @Jay no there is likely to relation at all. Your problem sounds more like an electrical noise problem, if you want to pursue it, it needs its own question, so please delete your comment here (or if someone else deletes it, feel free to remove this too) – Chris Stratton May 19 '12 at 15:46
  • I just used a oscilloscope with a visual output and the noise seemed regular. I even tried turning on the A/C and Heat at the same time to see if there was a possibility of faulty circuitry on the vehicle and there is no such indication. You earned a down vote. :p – Jay May 20 '12 at 14:47

1 Answers1

2

You can check whether the service is killed and restart it. See the following answers:

Community
  • 1
  • 1
Nik NexAndrX
  • 302
  • 1
  • 6
  • Please stop providing answers in links. Coz links may be removed in future – Shankar Agarwal May 19 '12 at 16:56
  • @Agarwal - those are all links to questions here on SO. It's better to reference the existing questions than paraphrase or copy their answers. – Chris Stratton May 19 '12 at 23:23
  • @AgarwalShankar though i tend to agree with you, it is this site's policy that answers to questions (when used as part of an answer) MUST be referenced via link and never paraphrased. i was severely rebuked for posting the same answer to different questions, even though the answer was correct in all cases. it was called SPAMMING by the moderators. – tony gil Jan 07 '13 at 16:15