8

I have tried to compile example code from new Google location API that should show user's activity. Like on foot, in vehicle etc.

Link to the example is http://developer.android.com/training/location/activity-recognition.html

In my case what I can see is that Google Play Services is available, Location Services connection goes fine as well but nothing afterwards. onHandleIntent never been called obviously.

Have somebody tried to make it work? Or are there some other working examples available on the Internet?

Thanks

TheCodeArtist
  • 21,479
  • 4
  • 69
  • 130
user986589
  • 201
  • 2
  • 5

1 Answers1

5

Is there any chance you forgot to add your service to the manifest? Something like

<application>
    ......
    <service
        android:name="your.package.ActivityRecognitionIntentService"
        android:exported="false" >
    </service>
</application>
Pavel Dudka
  • 20,754
  • 7
  • 70
  • 83