android: process =":remote"
<service
android:name=".ProfileService"
android:process=":remote" />
<receiver android:name=".AlarmReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.TIME_SET" />
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
当我完全关闭应用程序时,它将立即触发它。但是他实际上并不这样做。有办法吗?
Intent serviceIntent = new Intent (context, ProfileService.class)
startService(serviceIntent);
此外,这条路在第一次触发后不起作用