Android的 - GoogleApiClient ActivityRecognitionIntentService不会被调用 [英] Android - GoogleApiClient ActivityRecognitionIntentService is never called

查看:373
本文介绍了Android的 - GoogleApiClient ActivityRecognitionIntentService不会被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要检测我的应用程序的用户动态。我开始用GooglePlayServicesClient它,直到三个月前的工作完美,然后停在我的HTC一台设备上工作(尽管它仍然在三个不同的设备工作,我已经检查)。我知道它现在被替换GoogleApiClient,所以我认为这是我的问题,但它甚至改变到新的API后一直没有工作。
的问题是,考虑到ActivityRecognition.ActivityRecognitionApi.requestActivityUpdates意图不会被调用。我用同样的执行情况:<一href=\"https://bla$c$c.word$p$pss.com/2014/12/26/user-activity-recognition-through-new-activityrecognitionapi-in-android-activityrecognitionclient-de$p$pcated/\" rel=\"nofollow\">https://bla$c$c.word$p$pss.com/2014/12/26/user-activity-recognition-through-new-activityrecognitionapi-in-android-activityrecognitionclient-de$p$pcated/
(再次,这种实施适用于其他三个设备,但不能在HTC之一)。

I need to detect user dynamics in my application. I started by using GooglePlayServicesClient which till three months ago worked perfectly, Then it stopped working on my HTC one device (although it was still working on three different devices I've checked). I know it is now replaced by GoogleApiClient, so I thought this was my problem, but it keeps not working even after changing to the new API. The problem is that the intent given to ActivityRecognition.ActivityRecognitionApi.requestActivityUpdates is never called. I used the same implementation as : https://blacode.wordpress.com/2014/12/26/user-activity-recognition-through-new-activityrecognitionapi-in-android-activityrecognitionclient-deprecated/ (And again, this implementation works on three other devices but not on HTC one).

我做了一些在线阅读和我看到被更新谷歌播放或激活谷歌播放位置服务或禁用模拟位置上的Andr​​oid开发者设置解决了一些类似的问题。不为我工作。

I did some reading online and I saw some similar issues that were solved by updating google play or activating google play location services or disable mock location on the android developers settings. Non worked for me.

有没有人遇到同样的问题或者有一些想法是什么能原因?

Has anyone encountered the same problem or maybe has some idea what can be the cause?

推荐答案

最后什么解决它被重置设备制造商设置的,这意味着问题是在设备中的一些设置,我仍然不知道要什么引起的。如果有人发现一个答案,我会很高兴听到这个消息。

Eventually what solved it was resetting the device to manufacturer settings, meaning that the problem was some setting in the device , which I still have no clue to what caused it. If anyone finds an answer I'll be glad to hear about it.

这篇关于Android的 - GoogleApiClient ActivityRecognitionIntentService不会被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆