草庐IT

ActivityRecognitionResult

全部标签

android - ActivityRecognitionResult.hasResult(intent) 在向 Intent 添加额外内容时为 false

我目前正在努力添加GoogleAPIActivity识别。我成功地使用待定Intent报告了Activity,如示例所示:http://developer.android.com/training/location/activity-recognition.html现在,我想要一个来自IntentService的回调(由挂起的Intent触发)。为此,我尝试了在以下位置找到的解决方案:UsingResultReceiverinAndroidIntentintent=newIntent(ctx,ActivityRecognitionIntentService.class);intent.

android - proguard 导致 google play 服务的 ActivityRecognitionResult getMostProbableActivity 崩溃

我最近向Play商店发布了一个应用程序,虽然它在没有proguard的情况下工作得很好,但当我决定使用它时却遇到了意外崩溃。我看过here对于谷歌播放服务的推荐混淆器规则,我也尝试为这种情况添加另一行。这是我得到的(第三行是我的应用程序):-keepclass*extendsjava.util.ListResourceBundle{protectedObject[][]getContents();}-keepclass*implementscom.google.android.gms.internal.ae-keepclass*extendsil.co.kix.minitasker.E