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. Using Webkit/Webview for Android UI instead of native UI

We are working on this issue,you mean widget.

On Thu, Oct 22, 2009 at 2:02 AM, Jason Proctor <




--~--~---------~--~----~------------~-------~--~----~

2. bounce not working for my layout

>From the API demo i tried the bounce animation

        final View target = findViewById(R.id.target);
        final View targetParent = (View) target.getParent();

        Animation a = new TranslateAnimation(0.0f,
                targetParent.getWidth() - target.getWidth() -
targetParent.getPaddingLeft() -
                targetParent.getPaddingRight(), 0.0f, 0.0f);
        a.setDuration(1000);
        a.setStartOffset(300);
        a.setRepeatMode(Animation.RESTART);
        a.setRepeatCount(Animation.INFINITE);

The problem is that this does not work with my layout.  I finally got
working but had to hard code a value for:

targetParent.getWidth() - target.getWidth() -
targetParent.getPaddingLeft() - targetParent.getPaddingRight()

I don't like hard coding this in but it is the only way I could get it
to work.  My View is inside a LinearLayout and I put a padding of
10dip.

Any ideas?
--~--~---------~--~----~------------~-------~--~----~

3. Android experts: a template for the life cycle

4. Object Recognition

5. How to install EAP TLS certificates for WiF

6. Disable network on emulator

7. retrive number of outgong call