AlarmManager firing in emulator but not on physical device

后端 未结 1 1505
挽巷
挽巷 2021-01-14 18:36

I have an application that calls AlarmManager

Intent intent;
intent = new Intent(context, MyEventReceiver.class);  
PendingIntent appIntent = PendingIntent.g         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 19:01

    and in the Manifiest I have the obligatory entry

    android:process=":remote" is anti-obligatory. Please remove it. Quickly.

    On an actual device if I start MyApplication, add an alarm and then kill the process using a task killer

    Task killers remove the app's alarms as well, though this issue is resolved with Android 2.2.

    0 讨论(0)
提交回复
热议问题