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
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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.