我关闭应用程序时需要打开服务

时间:2016-07-12 21:53:25

标签: android

为什么不可能?

@Override
    protected void onDestroy() {
        startService(new Intent(getApplicationContext(), notificationService.class));
        super.onDestroy();

    }

当应用程序没有运行时,我真的需要执行一项服务。

0 个答案:

没有答案
相关问题