I have developed my application using this tutorial: 
http://code.tutsplus.com/tutorials/how-to-recognize-user-activity-with-activity-recognition--cms-25851


Even though I request updates every 3 seconds (or for a change, 5 seconds, 
10 seconds etc); the timing of the generated values is highly inconsistent. 
At times it would generate 4 values in 10 minutes! Why is the API being so 
inconsistent? Also, I'm unable to disconnect the API, even after I call 
API.disconnect(), I still keep getting values in logcat, which heats up the 
phone and consumes battery excessively.


Here is the full project: https://github.com/AseedUsmani/MotionAnalyser2


Stackoverflow 
Link: 
http://stackoverflow.com/questions/37819347/activityrecognitionservice-google-api-is-not-working-properly

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4ca6c9a7-d8b2-4025-b3ea-38b708f72994%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to