android - Get Google Maps Navigation Instructions -


i'm looking way instructions maps navigation. think possible way read notification data placed @ top maps navigation. reason beleving way comes post. tried getting data onnotificationposted method, cant find directions data in statusbarnotification object...

does have solution or better idea on how achieve this

you can implement notificationlistenerservice in order retrieve content of google maps route direction. unfortunately maps not using common attributes within statusbarnotification. maps uses remoteviews display content. can send data via broadcast activity , add content existing view:

remoteviews remoteview = intent.getparcelableextra(id); if (remoteview != null) {     viewgroup frame = (viewgroup) findviewbyid(r.id.layout_navi);     frame.removeallviews();     view newview = remoteview.apply(getapplicationcontext(), frame);     newview.setbackgroundcolor(color.transparent);     frame.addview(newview); } 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -