I know that some peoples view is that you should not create persistent services.
But for those of us that want to increase our knowledge, how does one go about creating one in theory?
I have been playing around, and noticed that services that use startForeground are killed in low memory situations.
I have seen a, now deprecated, permission PERSISTENT_ACTIVITY
, but that didn't do much.
So what is the secret?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…