Android M继续杀死前台服务

时间:2016-09-15 06:10:49

标签: android service android-6.0-marshmallow

为什么我的运行服务在Android Marshmallow上被杀死,而它在4.x,5.x上正常工作 我创建了扩展服务+通知并将其作为前台运行。 然而,它在大约5分钟后总是被停止(同样,通知也没有了)。

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 


<Files "index.php">
AcceptPathInfo On
</Files>  
</IfModule>

<IfModule !mod_rewrite.c>

ErrorDocument 404 /index.php
</IfModule>

在Android 6.x上保持服务运行而不被杀死的正确方法是什么?谢谢

0 个答案:

没有答案
相关问题