How to get notifications about Google map navigation in android

I am encountering some problems in my android project ... My application occupies the current user position and destination end position. It calculates the shortest path and highlights it on a Google map ... my problem is how I get a notification when the user follows this highlighted path, which, after assuming that the user takes a 10-meter right turn or a left turn .. .? Thankxx

+4
source share
1 answer

Not quite sure what you mean, but do you want to receive notifications from the Google Maps app? For example, β€œTurn left”, β€œAt 200 meters, take the first exit at the roundabout,” look at the accessibility service in Android:

http://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html

It can read notifications that are in the notification bar. You can make it run every time you update the navigation notification.

0
source

All Articles