activity-recognition

Failed to crunch file - Android studio (app:mergeDebugResources)

浪子不回头ぞ 提交于 2019-12-17 18:03:12
问题 i am currentyl trying to implement Google ActivityRecognitionApi. However i get following errors: Error:Failed to crunch file C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png into C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\res\merged

Failed to crunch file - Android studio (app:mergeDebugResources)

落爺英雄遲暮 提交于 2019-12-17 18:02:05
问题 i am currentyl trying to implement Google ActivityRecognitionApi. However i get following errors: Error:Failed to crunch file C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png into C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\res\merged

Is it possible to simulate detected activities for the ActivityRecognitionApi for testing purposes?

余生长醉 提交于 2019-12-12 08:43:51
问题 Google Play Services provides an ActivityRecognitionApi that lets you detect various user activities (via DetectedActivity) such as if the user is walking or running. Is it possible to mock these activities for development and testing purposes? 回答1: Yes, it's possible, but only on the emulator (or a rooted device). For example, to simulate the walking activity run: adb root adb shell am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e 'location:mock_activity_type'

syncing accelerometer data of android wear to phone or computer

[亡魂溺海] 提交于 2019-12-10 09:55:50
问题 Is it possible to sync real time data generated by sensors such as accelerometer, gyroscope etc. which are fitted on the smart watch (running on android wear) to any phone instantly. Is yes, how to do so ? 回答1: Yes it is possible. Use the SensorsApi to collect the data. Use the MessageApi to send the data from the watch to the phone. 来源: https://stackoverflow.com/questions/28189733/syncing-accelerometer-data-of-android-wear-to-phone-or-computer

syncing accelerometer data of android wear to phone or computer

孤者浪人 提交于 2019-12-06 03:57:53
Is it possible to sync real time data generated by sensors such as accelerometer, gyroscope etc. which are fitted on the smart watch (running on android wear) to any phone instantly. Is yes, how to do so ? Yes it is possible. Use the SensorsApi to collect the data. Use the MessageApi to send the data from the watch to the phone. 来源: https://stackoverflow.com/questions/28189733/syncing-accelerometer-data-of-android-wear-to-phone-or-computer

Android Activity Recognition on Wearables

旧街凉风 提交于 2019-12-06 03:06:08
问题 I'm researching ways on how to do activity recognition using an android smartwatch. Currently, I'm focusing on detecting whether the user is walking or standing still. My first idea was to use the built in step counter, but then I came across the Android Activity Recognition API (I'm relatively new to Android^^) which seems to be used in mobile apps only. I'm now stucking at answering the following questions: Is the current API already making use of a connected wearable device? (e.g.

Android Activity Recognition on Wearables

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 08:15:48
I'm researching ways on how to do activity recognition using an android smartwatch. Currently, I'm focusing on detecting whether the user is walking or standing still. My first idea was to use the built in step counter, but then I came across the Android Activity Recognition API (I'm relatively new to Android^^) which seems to be used in mobile apps only. I'm now stucking at answering the following questions: Is the current API already making use of a connected wearable device? (e.g. automatically accessing built-in wearable sensors) Is there a seperate API available for Android Wear? Is there

Is it possible to simulate detected activities for the ActivityRecognitionApi for testing purposes?

血红的双手。 提交于 2019-12-04 04:07:48
Google Play Services provides an ActivityRecognitionApi that lets you detect various user activities (via DetectedActivity ) such as if the user is walking or running . Is it possible to mock these activities for development and testing purposes? Yes, it's possible, but only on the emulator (or a rooted device). For example, to simulate the walking activity run: adb root adb shell am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e 'location:mock_activity_type' 'WALKING' And then restart Google Play Services (or restart the device): adb shell ps -A | grep com.google

Activity Recognition stops receiving updates when phone goes to standby(screen off state)

允我心安 提交于 2019-12-03 07:46:03
问题 I am having some trouble with activity recognition. I have implemented it in an app and it works fine when the device's screen is on. I have a log entry in my Activity recognition intent service class and I can see when it gets an update.So, I know it is working fine when the screen is on. But then after the phone is put to standby(the screen is turned off) it stops detecting the uses activity. The onDisconnected() in the DetectionRequester class is not getting called, I checked using a log

Activity Recognition stops receiving updates when phone goes to standby(screen off state)

只谈情不闲聊 提交于 2019-12-02 21:10:33
I am having some trouble with activity recognition. I have implemented it in an app and it works fine when the device's screen is on. I have a log entry in my Activity recognition intent service class and I can see when it gets an update.So, I know it is working fine when the screen is on. But then after the phone is put to standby(the screen is turned off) it stops detecting the uses activity. The onDisconnected() in the DetectionRequester class is not getting called, I checked using a log post. My question: Why does my app stop tracking the uses activity after the device goes to standby mode