Google Maps Broadcast Event for audible navigation instructions start and stop?

by skyhigh » Tue, 15 Dec 2009 03:53:02 GMT


Sponsored Links
 I have an application which is playing audio.  I have some customers
that use this application while driving and who also use the Google
Maps application to get directions to the places where they are
driving.

They have asked me to change my application to pause my audio while
the Google Maps application is giving them audio navigation
instructions.  I am trying to find out if I can register a Broadcast
Receiver to let me know when the Google Maps application is giving
audio navigation instructions, or if there is a way to detect when any
other application has started or stopped playing audio.

It seems that this type of functionality would be beneficial for
Google Maps and for any type of application which is playing media, so
I am hoping that Google Maps is broadcasting events when it starts and
stops giving audio navigation instructions, or that there is a generic
way to discover when overlapping audio sources are trying to play.

--



Google Maps Broadcast Event for audible navigation instructions start and stop?

by justinh » Tue, 15 Dec 2009 04:19:13 GMT


 Unless it is here then it is unsupported and you shouldn't use it
anyway:  http://developer.android.com/reference/android/content/Intent.html 

Of course, there is nothing from any of the Google apps listed there.
Not sure about just general audio.





--


Sponsored Links


Google Maps Broadcast Event for audible navigation instructions start and stop?

by blindfold » Tue, 15 Dec 2009 15:55:19 GMT


 +1. I am interested in this functionality too, to mute my app when
Google Maps Navigation is talking.




--



Google Maps Broadcast Event for audible navigation instructions start and stop?

by skyhigh » Wed, 16 Dec 2009 10:38:05 GMT


 I checked the Android reference intent documentation that you linked
to, but couldn't find anything that I could use to detect either
Google Map audible navigation or generic overlapping media playing.

It seems like this would be a useful broadcast notification for anyone
providing an audio application.  If Google Maps doesn't already
provide this broadcast notification is there a way to request this
functionality be added to Google Map?

--



Google Maps Broadcast Event for audible navigation instructions start and stop?

by Dianne Hackborn » Wed, 16 Dec 2009 10:59:18 GMT


 The platform needs to have richer features for deciding which audio to do at
various times.  I don't think having maps send a broadcast is really a good
solution for this, and likely to quickly become a mess for everyone.




>



Google Maps Broadcast Event for audible navigation instructions start and stop?

by skyhigh » Wed, 16 Dec 2009 13:32:53 GMT


 It would be great if the platform provided this functionality so that
audio applications could pause when appropriate for audio
notifications or other interruptions.  I agree that providing this
support in the platform would be best, then it would work regardless
of the source of the audio notification/interruption.

Long term audio apps such as music players, podcast listeners, and
audiobook players could automatically pause when appropriate and then
resume after the interruption has finished.  Short term audio users
such as audible notifications, alerts, and phone calls could signal
the long term audio apps to get out of the way until they have
finished so that overlapping audio isn't playing.  A single platform
provided mechanism for this would be very nice.

I hope that your comment means that you have forwarded an enhancement
request for this type of platform supported audio coordination to the
appropriate people.


--



Other Threads

1. java.io.file.getfreespace()?

The Android reference for java.io.file lists the 1.6  apis, including
getfreespace().  My code compiles, but when I run it I get
VerifyErrors on the call.  My Mac Java preferences list Java 1.6 and
my Eclipse Java JRE preferences have Java 1.6 checked.  Does anyone
know what I'm doing wrong?

-- 

2. Paging Android Pekanbaru

Ada yang dari pekanbaru? Mirink yuk... Sayah pakai Galaxy S.

-- 


Salam,
Budi Agung Kurniawan

-- 
===============
"

3. [id-gps] WTA: Google Maps 5.0.0 for Android

4. Documentation errors for LocationManager.requestSingleUpdate() ?

5. Paging bos Dedi Sopian

6. Upgrade HTC Wildfire - Next Generation

7. Oot : salam kenal