Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/190.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android-已经有一个挂起的vsync事件_Android_Android Intent_Notifications - Fatal编程技术网

Android-已经有一个挂起的vsync事件

Android-已经有一个挂起的vsync事件,android,android-intent,notifications,Android,Android Intent,Notifications,我有三种服务 上午通知、晚餐通知、晚上通知 我有这个代码来初始化它们: morning_notification = new Intent(); morning_notification.setClass(this, MorningNotification.class); dinner_notification = new Intent(); dinner_notification.setClass(this, DinnerNotification.class);

我有三种服务

上午通知、晚餐通知、晚上通知

我有这个代码来初始化它们:

morning_notification = new Intent();
    morning_notification.setClass(this, MorningNotification.class);

    dinner_notification = new Intent();
    dinner_notification.setClass(this, DinnerNotification.class);

    evening_notification = new Intent();
    evening_notification.setClass(this, EveningNotification.class);
之后,我会像这样使用它们:

    ... 
    /* Запуск сервера */
                        startService(morning_notification);
    ...
 ... 
    /* Запуск сервера */
                        startService(dinner_notification);
    ...
 ... 
    /* Запуск сервера */
                        startService(evening_notification);
    ...
但是,问题是只有MorningNotification服务在工作。但我需要从这三个开始

我有这个日志:

 W/Choreographer﹕ Already have a pending vsync event.  There should only be one at a time.
12-09 09:35:03.025  12961-12961/ru.mentalcalculation E/ViewRootImpl﹕ sendUserActionEvent() mView == null
12-09 09:35:07.895  12961-12961/ru.mentalcalculation W/Choreographer﹕ Already have a pending vsync event.  There should only be one at a time.
12-09 09:35:07.895  12961-12961/ru.mentalcalculation E/ViewRootImpl﹕ sendUserActionEvent() mView == null
12-09 09:35:12.845  12961-12961/ru.mentalcalculation W/Choreographer﹕ Already have a pending vsync event.  There should only be one at a time.
12-09 09:35:12.845  12961-12961/ru.mentalcalculation E/ViewRootImpl﹕ sendUserActionEvent() mView == null

您不能同时启动这三项服务。我建议你在打第二个电话之前,先把早上的事情做完。这是为了避免可能失控的不受控制的分支。您可以查看: