0

I'm building a fitness app using Google Fit API and I can't get the distance that the user walked, giving me the title's error on a API 17 device (only one that I tested).

This question is similar but didn't solved my problem and this one maybe is the same situation as mine.

Is the DataType.TYPE_DISTANCE_DELTA not available on API 17? I can't test in another device because I don't have another device with me and the only emulator that I know that can use Google Play Services is the Android Studio's emulator and I can't make it work.

Community
  • 1
  • 1
António Paulo
  • 351
  • 3
  • 18

1 Answers1

0

AppOpsManager was added in API Level 19, so you can maybe try to modify your manifest to a higher version. Just check the APIs you're using and make sure they're compatible to the version you're going to use.

In regards to the DataType.TYPE_DISTANCE_DELTA, I don't think it's the one causing this issue.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
AL.
  • 36,815
  • 10
  • 142
  • 281