Android Google glass应用程序在设备进入睡眠模式后被调用后冻结

Android Google glass应用程序在设备进入睡眠模式后被调用后冻结,android,google-glass,google-gdk,Android,Google Glass,Google Gdk,该应用程序由一个更新经纬度和速度的低频卡组成,点击它可以带你进入一个显示图像的活动。轻触图像时,图像被处理,语音输出被提供给用户。这个应用程序运行得非常好。但在设备进入睡眠模式并再次调用应用程序后,低频实时卡不会更新,点击时,不会显示项目文件夹中的图像。稍后应用程序会冻结设备。为什么应用程序没有被操作系统杀死?我正在运行XE 20.3 这是我的日志 11-27 14:44:43.576: E/GmsClient(936): unable to connect to service: com.go

该应用程序由一个更新经纬度和速度的低频卡组成,点击它可以带你进入一个显示图像的活动。轻触图像时,图像被处理,语音输出被提供给用户。这个应用程序运行得非常好。但在设备进入睡眠模式并再次调用应用程序后,低频实时卡不会更新,点击时,不会显示项目文件夹中的图像。稍后应用程序会冻结设备。为什么应用程序没有被操作系统杀死?我正在运行XE 20.3

这是我的日志

11-27 14:44:43.576: E/GmsClient(936): unable to connect to service: com.google.android.gms.droidguard.service.START
11-27 14:44:44.474: E/VoiceTriggers(829): Unable to build voice trigger for service ResolveInfo{41e6c980 com.glob3mobile.glasses/.G3MGlassesDemoService m=0x108000}; com.google.android.glass.app.VoiceTriggerBuildingException: Custom voice triggers not allowed for com.glob3mobile.glasses
11-27 14:44:44.553: E/GCoreFlp(1196): Bound FusedProviderService with LocationManager
11-27 14:44:55.857: E/GCoreFlp(1196): Bound FusedProviderService with LocationManager
11-27 14:45:05.138: E/WindowManager(495): Starting window AppWindowToken{41ffb180 token=Token{41fcf978 ActivityRecord{41ff7120 u0 com.example.lowfreq/com.example.viva.inputImage t2}}} timed out
11-27 14:45:33.888: E/btif_sock_rfcomm(898): find_rfc_slot_by_id unable to find RFCOMM slot id: 368
11-27 14:45:39.037: E/btif_sock_rfcomm(898): find_rfc_slot_by_id unable to find RFCOMM slot id: 369
11-27 14:45:44.177: E/btif_sock_rfcomm(898): find_rfc_slot_by_id unable to find RFCOMM slot id: 370

我已经为live card设置了生命周期事件。

您是否介意显示您的
onPause()
onResume()
方法?