Android Waze Notifications

These forums are specific to the Waze mobile app. Post here if you experienced a problem while using the app, have a question about the app functionality or a feature such as navigation or search.

Moderators: krankyd, Unholy

Re: Android Waze Notifications

Postby AndyPoms » Sun Nov 11, 2012 11:36 pm

mwiz881 wrote:First, does anybody have the source code for 3.5? I see the source for 2.4 up, but nothing for 3.x This makes things a little more complicated.
Waze stopped being Open Source with the release of version 3.
Image
Waze Champ & Forum Moderator
USA Country Manager
Senior Area Manager: State of Connecticut
Wiki: Editing | Best Practices | FAQ
AndyPoms
Waze Global Champs
Waze Global Champs
 
Posts: 5925
Joined: Tue Dec 27, 2011 1:34 pm
Location: Hartford, CT
Has thanked: 89 times
Been thanked: 887 times

Android Waze Notifications

Postby mwiz881 » Fri Nov 09, 2012 6:31 pm

Hi!

I'm using Waze while Doggcatcher is playing in the background. Doggcatcher has the ability to utilize the API to pause the playback during notification sounds. I know this works because Google Maps/Navigation works fine with this.

When using Waze, it seems like it doesn't do this, and just plays "on top of" the playing podcast. Is there a way to make Waze use "Notifications" so that Doggcatcher can pause the playback? Here's the URL for Doggcatcher that talks about this...

http://www.doggcatcher.com/node/2579

Thanks!
mwiz881
 
Posts: 13
Joined: Fri Dec 23, 2011 3:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Android Waze Notifications

Postby mwiz881 » Sat Nov 10, 2012 3:58 pm

OK, I'm getting annoyed with it not being able to do something so simple. It seems like there's been so many requests with this and yet nothing has been done. First, does anybody have the source code for 3.5? I see the source for 2.4 up, but nothing for 3.x This makes things a little more complicated.

Second, it looks like the Waze team borrowed most of it's code from "Roadmap". Since this has been requested for ages and has yet been implemented, it makes me wonder how much coding experience the Waze team. In any case, my plan is to make a patch available that does this. Android documentation is here...

http://developer.android.com/training/m ... focus.html

The code in particular is...

Code: Select all
// Request audio focus for playback
int result = am.requestAudioFocus(afChangeListener,
                             // Use the music stream.
                             AudioManager.STREAM_MUSIC,
                             // Request permanent focus.
                             AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK);
   
if (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {
    // Start playback.
}


Now, I think one would have to add it to the "FreeMapNativeSoundManager.java" file, but not 100% sure yet. I don't have a whole lot of time today, but I hope to tackle this sometime next week. I may contact the Roadmap folks and see if they have a solution. I'd hate to reinvent the wheel when something else already exists...
mwiz881
 
Posts: 13
Joined: Fri Dec 23, 2011 3:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Android Waze Notifications

Postby pvaladares » Sun Nov 11, 2012 11:23 pm

mwiz881 wrote:OK, I'm getting annoyed with it not being able to do something so simple. It seems like there's been so many requests with this and yet nothing has been done. First, does anybody have the source code for 3.5? I see the source for 2.4 up, but nothing for 3.x This makes things a little more


Android APK file is just like a ZIP file ;)
Country Manager for Portugal | Champ | Expert Android and others
Forum PT | Wiki PT | Facebook PT | Twitter PT
pvaladares
Waze Local Champs
Waze Local Champs
 
Posts: 602
Joined: Sun Jun 24, 2012 6:05 pm
Location: Porto/Lisboa, Portugal
Has thanked: 35 times
Been thanked: 36 times


Return to Waze App

Who is online

Users browsing this forum: Bing [Bot]