yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] djduong:
Ha! I went to Waterloo, but don't live there any more :) Live up in Barrie now, and in Toronto for meetings every week or so. If I ever head that way, there's definitely a beer coming your way.

Same with you rac and Brut.all :) Beer for you too. :) Where are you guys?
[G1 Android Development] rac2030:
Cool that it works ;-)

Basically I use the built in voice search... so shouldn't be any different.

Can you do a logcat?

Maybe we see in that logcat to which intent the original voice search calls and see if I can do a competing intent receiver that you get the choice which one should be replaced...

EDIT: About the beer, can get hard as I'm far far away ok just half as far ;-) I'm from Switzerland
[G1 Android Development] Brut.all:
Poland ;-)

I think there isn't many Americans in thread about Navigation working outside USA ;-)
[G1 Android Development] canadiancow:
I don't understand the purpose of that comment.
[G1 Android Development] Brut.all:
I mean djduong has small chance to find someone to go out for a beer, because this thread, by virtue of its topic, is international. In other threads there are mainly people from your area (yeah, I know you are from Canada, not US, but it's just a few hours away), but here the proportions are completely different :-)
[G1 Android Development] bjtheone:
That sounds a lot like the comment one of my sister's boyfriend made. He was form Portugal and was planning a Canadian trip with friends. They wanted to do things on both the east and west coasts, were planning on driving, and had one week. I had to gently explain the size of the country.... I can drive for more than 12 hours and not get out of Ontario.

Of course, having said that Waterloo is only about 3-4 hours from the border.
[G1 Android Development] Brut.all:
Hah ;-)

When I was testing this navigation thing on an emulator, I was setting my location manually by geo fix command. First I did tests in USA and then moved to Poland. I wanted to move slightly to east, so I altered longitude and then: "****! Where the f... am I?". I was in Ukraine ;-D

Yes, USA/Canada are huge :-)
[G1 Android Development] canadiancow:
You must drive slow :p

But yea...these aren't small countries.
[G1 Android Development] honest1212:
Thanks All !

Working fine at my place(India)
[G1 Android Development] Dare{D}evil:
Thanks a ton for the hack ^_^ driving directions are needed in India for sure!! lol :)
[G1 Android Development] Nico de Vries:
Perhaps this is useful for others having problems installing this.

When I followed the instructions I got a INSTALL_FAILED_UPDATE_INCOMPATIBLE error. This error is caused by a certificate mismatch which is caused by signed data still on the phone.

I solved it with:

adb remount

adb shell find /system /data -name \*google\*maps\*

(to see which files will be deleted, be very careful here)

adb shell find /system /data -name \*google\*maps\* "|" xargs rm

(to delete the files)

adb shell reboot

After this I could install without errors. Thanks @all for making the patched version and the instructions to install it.
[G1 Android Development] Rapax:
Well, yes, that does indeed work. Now it pronounces the street names fairly accurately. However, it also pronounces 'turn left onto' and other instructions as if they were in german. I'm not sure which version is actually more annoying.

Still, good job getting this to work.

Btw, will I lose the navigation again if I allow the update for 'Google Maps' to go through from the market? It's bugging me ever day that there's an update available.
[G1 Android Development] rac2030:
You can use it but open an issue on the project site because this thread is about navigation and not MarketEnabler.
[G1 Android Development] sasa3791:
yea i know that, sorry
[G1 Android Development] canadiancow:
I've attached a zip file. The USA one is navigating from somewhere in the USA to somewhere in the USA (I can't remember the cities I picked), and it was successful. The Canada one is navigating from Ottawa to somewhere in the USA, and it gave me the "navigation not available" or whatever the error message is.

I started both captures just before clicking the Navigate button.
[G1 Android Development] vekexasia:
Hi canadiancow . I had 10 minutes to see the pcap files you sent.

As far as i can see both of the captures have San Francisco inside..

And i saw ever DriveAbout on the requests. Could you please check if you sent the right files..

Thanks..

PS: Keep this thread alive.. Everyone Wants Google Maps Nav :)

PPS: For marketEnabler users. Please go here: http://code.google.com/p/market-enabler/ and fill the Issue Form with some logs :) (Do n ot reply this.)
[G1 Android Development] mr.tenuki:
Hi Guys,

I hope I'm not making a complete idiot of myself, but I think that the navigation is on the server side and not device side, and the nav directions are actually stored in the server and sent to the device upon route calculation.For this reason, you cannot have it outside the US.

I have used the nav option yesterday, and the actual nav screen does not look like the screen in the 1st post. Also, when leaving the suggested route it was quite fast with recalculating and showing drive times according to traffic. I really think that this is linked to the server side and not the client side.

It might be that just for this time, it is indeed unavailable outside the US, exactly like google claimed.
[G1 Android Development] canadiancow:
Yea...I think I did Las Vegas to San Francisco for the US file, and Ottawa to San Francisco for the Canada file.

This is what we're trying to determine, and circumvent.

It's exactly what working nav looks like for me, aside from the error message.
[G1 Android Development] Brut.all:
I'm rather sceptic, that this could be done. Contrary to what @canadiancow said, communication is much different when we're using navi than get directions. I've tested this on emulator + Wireshark and have tried to route from faked My Location (Washington 38.910003 -77.033386) to "Chicago, IL, USA".

Both directions and navi sends 2 requests and gets 2 responses in one HTTP session. All 4 requests are similar, contains the same pieces of data. All responses from server starts with some kind of header: first 7 bytes are identical, next 5 differs, but looks alike. First pair of responses have their data gzipped and it starts right after header i.e. at offset 12. After decompressing the most of data is still binary, but we could finally see readable strings, like "Slight left at 21st St NW", etc.

But that's where the similarities ends...

It seems, that navi's response contains all data for directions, but has much more. Size of responses is 16KiB and 19KiB compressed data and 19KiB/27KiB uncompressed. Response for navi contains links to images with streets symbols, also binaries looks bigger.

Second pair of responses differs completely. Direction's response is empty, consist of 12-bytes long header only. Navi gets full response with ~9KiB of data and I couldn't gunzip it, so maybe it's all binary.

I'm attaching sample of communication, parsed data and parser, that I wrote in Python.
[G1 Android Development] canadiancow:
Interesting, but it might not be the end of the road yet. Even if we need to convert the directions data to Navigation format, we could still get it working. We may not have Street View, but anything is better than nothing.
[G1 Android Development] Jubei:
I think this could be done without much difficulty. How different can the data be?
[G1 Android Development] Brut.all:
You have samples in my post.

It is not just different - navi gets data, that directions don't need, like some images, more accurate info about streets, etc. And that's binary format is real pain in the ass.

I have made significant progress, discovered, that API is using Google Protocol Buffers and hence these binary data, but without .proto files I have fun comparable to decompiling binaries. Beside of that, protobufs are mixed up with custom binary format and it's really chaotic :-/

Maybe we could manage this. I should be able to fake or generate from directions a majority of missing navi data. I'm still fighting on front line :-)
[G1 Android Development] jezzaaaa:
Awesome progress Brut.all. Please keep your findings coming in. At some stage I'll be able to put a bit of time into this, and might be able to help out.
[G1 Android Development] Brut.all:
From Cracow to Warsaw, Poland ;-)

There is still much much to do, but it should be ok in relatively close future :-) I have some issues because of lack of additional data, but really, I don't care about it at this moment :-)

Finally, I gonna get some good sleep tonight ;-)
[G1 Android Development] canadiancow:
Excellent work! What else needs to be done? I'm off work in 2 hours, then I'd love to do whatever I can.
[G1 Android Development] imfloflo:
@Brut.all wow welldone for a 3 post users :) very great contribution thanks for your work
[G1 Android Development] xdowner18:
great work! i hope its coming soon :D
[G1 Android Development] E2K:
Sleep tight man! awesome work :cool:
[G1 Android Development] jezzaaaa:
Dude, what did you do!? Awesome!!! :eek: Get some sleep, you deserve it.
[G1 Android Development] newfie1:
Great work guys. Looking forward to seeing this work. I have an ADP (running Cyanogen 4.2.4) and can assist / test if needed. I was able to get the Navigate button for US addresses...

Great community effort!
[G1 Android Development] finalmoksha:
Hi, I am in India and using cyan 4.2.5. I do get turn by turn navigation but not the voice assist. Just thought I'd share this.

Cheers
[G1 Android Development] nakeman:
is it possible to do it in terminal or console?

thanks
[G1 Android Development] rac2030:
The update won't be instalable because the patched version is not with the original certificate signed...

I just installed the new patched version and it doesn't ask me to update ;-)
[G1 Android Development] djduong:
A few notes rac :)

a) if you use the google search to get directions (is this even available pre-2.0 android? I don't actually know, as this is my first android device!) you actually get a nice little delay timer confirming it got the right address:

http://www.youtube.com/watch?v=D63jWnL9svE

(about the 5'15" mark)

The problem without this is if the voice search was incorrect, you don't get a chance to try again, and nav starts to the destination it thinks you want :)

b) the voice button click-zone doesn't seem to be large enough or something? :) I can't seem to get voice search to come up all the time (less than 50% actually). Most of the time when I click your voice search button, it'll fire up NavStarter and just give me the history list and i have to click the voice button again. [here's a funny note: this morning, my success rate is much higher :)]

c) in landscape mode, your widget looks stretched :) The text box needs to stretch in landscape mode as to not stretch the rest of the icons

I'll keep sending this feedback if you want :) But so far, so good!

P.S. rac & brut.all, europe is hardly that far any more :) Maybe I'll fly over for a weekend ;) ... in my private jet?! :) (hey .. maybe one day? :) )
[G1 Android Development] CompactDstrxion:
Updated shell commands worked great for me, thanks
[G1 Android Development] rac2030:
hmmm... won't be a problem to implement something like this for voice search.

Would you mind to put your idea (you can just copy paste your text) into an Enhancement request on my googlecode page?

http://code.google.com/p/andrac/issues/entry?template=NavStart-Enhancement

This way it's easyier to track this for me and for you ;-)

can you make an defect issue from this on googlecode page? I will code a special widget for you to see the actual boarders, as the resolution from Droid/Milestone is much different to my G1, it's not that easy to reproduce.

http://code.google.com/p/andrac/issues/entry

Hmmmm.... yes, I dont use autorotate on the homescreen and did'nt notice it but I have to see, I don't remember the name but it exists some special image format for this problem where the picture is cutted into tiles and you can define which tiles can stretch and which not...

Some dev knows the name?

Yes please, just keep the feedback comming and feel free to directly post this into issues on the googlecode page.

This is what keeps the software developing because I don't have a droid/Milestone on hand so I can't test (I just have an ADP and since today I got a Hero on hand) and for this that I know from emulator with 2.0 and what exactly runs on droid there's some differencies.

Yes Europe isn't that far, if I would have more time I would go shopping in New York each week, as with my private concorde it's just a few hours flying :-P

But if your really one time in Zürich, you are invited on a beer ;-)
[G1 Android Development] dgriffin:
The only way I could get past the "INSTALL_FAILED_UPDATE_INCOMPATIBLE" problem was via a data wipe from recovery.

This might have been a rather extreme method.. but it worked. I had uninstalled the google maps official app prior and deleted files using the commands at the beginning of this thread.

I did find mention of the original google maps app in /data/system/packages.xml though - I'm not sure if that was the problem. I did edit them all out and push the new file back onto the device but I must have left some sort of syntax error because my phone had issues.

Either way - it is sorted now, and I have the root version working!

Thanks.
[G1 Android Development] rac2030:
I implemented something for you, can you check it out and tell me if you want it like this? => http://andrac.googlecode.com/files/NavStarter_0.7.4_alpha.apk

This is just an alpha version for you so not finally implemented but as proof of concept if you meant like this ;-)

If you press the voice search button on the widget (about tracking the touches, red part should start normal search and green part is the voice search, can you make a screenshot or a picture how it looks on your phone?) it should be same like before but after speaking, there will be a little window with the destination on screen for 4 seconds and then starting Navigation.

To cancel the start just press on the target text in the window or outside the dialog somewhere on the screen and it should bring you back the voice recognition for a second try.

EDIT: http://i46.tinypic.com/15fk7f8.png <= this is how it looks like on normal screen size / resolution
[G1 Android Development] MoreYummy:
Does it work on 1.5 magic?

And is there a way to store the maps, but looks like it is not possible. :D
[G1 Android Development] canadiancow:
This requires 1.6, and offline map storage would be a topic for yet another thread :P
[G1 Android Development] MoreYummy:
Which rom you using since rogers doesnt have 1.6 updated for their phones?
[G1 Android Development] canadiancow:
I'm using CyanogenMod. It's a great ROM for the Dream and Magic. It's currently a 1.6/2.0 hybrid.

http://www.cyanogenmod.com for more details.
[G1 Android Development] canadiancow:
I have a beta of Nav Launcher 2.0 available at http://navlauncher.madcowsolutions.com/viewtopic.php?f=7&t=11

It has some new features, including an automatic installer of the modified Google Maps apk. I could use some help testing it though. I only have access to Rogers and Telus devices, and the emulator.
[G1 Android Development] djduong:
done.

done.

working on this one ;)
[G1 Android Development] djduong:
I'll give it a whirl and post some screenshots tomorrow night. (Got a family dinner thing tomorrow).

Speaking of which, is there any util for taking screenshots of your current screen?
[G1 Android Development] Brut.all:
DDMS - part of SDK. As far as I know this is not possible to do it from device.
[G1 Android Development] deadite66:
there is an app for screen shots, it needs root.
[G1 Android Development] rac2030:
I just know how to do it with root access... DDMS or some apps but not on non rooted phones like yours...

If you have a digicam, the old way would be enough for me to see the boundaries, just picture your phone ;-)

Anyway, I have now to finish my pre bachelor thesis (got a Hero yesterday but I'm not allowed to open the package until I finished the work on my thesis said my girlfriend)

So more devel on NavStarter have some delay...

If you have issues, open a ticket and I will look at it, if it's just a mather of 5 min I will fix it directly and publish the update.

The problem with the widget layouts on different screensizes is more complicated and I need to read up some more docs about how to do this and how to create 9-patch graphics (this was the word I was searching yesterday)
[G1 Android Development] maarten82:
There's only one thing to say here really..... BRILLIANT!! Thanks so much guys!
[G1 Android Development] migalito:
That's amazing ;) First was One Click Root now is One Click Navigate Install :D

Tested on my rooted G1 with CyanogenMod 4.2.6 (fresh install) and detected that I dont have Google Maps Navigate installed and prompted to download Maps3.2.1-patched-root.apk.

Works Great, congratulations.
[G1 Android Development] raskall:
Only broken links to the patched maps apk file

Hi

Finally we have a working Eclair on the HTC Hero and we can start using maps navigation.

I am in europe and need the patched file, but it seems to be removed from all download sites. All links I have found states that link is broken or file is deleted.

I would really appreciate if someone could provide me working download links.

Pretty please?
[G1 Android Development] canadiancow:
If you download Nav Launcher from the Market, it will install the patched version for you. Remove any existing versions of Google Maps with Navigation first though.
[G1 Android Development] hornjo:
I have installed Nav 2.o on my HTC Magic 32A, with Amon Ra's clean donut.

When I launch and enter a destination I get, "No route found. Navigation to your destination is not available. Exit Navigation.

I can see my location "behind" the above message.

I have Maps3.2.1-patched-rooted.apk on my sd card loaded.

What am I missing?
[G1 Android Development] amiuhle:
I just created search plugins for my OpenSearch app to launch Google Navigation and search for stuff on Maps:

http://android-open-search.appspot.com/browse.do?categoryId=13001

Worked fine for me in a quick test, but could someone else test it?

//Edit: Use the barcode to install OpenSearch, click "Add", Browse to "Android Specific" and install the Maps/Navigation plugins...
[G1 Android Development] canadiancow:
Assuming you're in a supported country, it sounds like you don't have the modified version of Google Maps installed.

I highly recommend uninstalling Google Maps, and letting Nav Launcher install the modified version for you.
[G1 Android Development] raskall:
Hey.. it for sure did. But when I try to search in regular Maps it force closes. The navigation part works great when I launch with Nav Launcher.

I found my way home from the train station due to this. :)
[G1 Android Development] canadiancow:
Strange...I haven't had any force close issues. Can you post the logcat entry?
[G1 Android Development] amiuhle:
@canadiancow:

You can use "google.navigation:q=%s" URI to launch nav btw...
[G1 Android Development] raskall:
Never mind. I installed the Google Maps package via Market and it worked. Navigation still works when using Nav Launcher.
[G1 Android Development] canadiancow:
I'll try that out later, but what I like about how I'm doing it now is that if you have two copies installed on a non-rooted phone, it tries the modified version first. Also, I can easily tell if you have Navigation installed.
[G1 Android Development] rac2030:
It works, I discovered while developing NavStarter but as you said, because if there is a original and the non-rooted patched version available on the phone I also do it with the hardcoded package name.

On the other side, I think it's best to include this in settings so user can choose if they want to force using a specific apk or if they want to sent the general intent that the phone can handle.
[G1 Android Development] BritSwedeGuy:
UK Maps + Nav

Excellent!

Slightly nerve-racking doing rm-ing an app but all loooks great!

UK T-Mobile G1 on Virgin Mobile

CM 4.2.6
[G1 Android Development] mirox3m:
Very strange, but niiiiicceeee!!!

After upgrading to CMod 4.2.6 (it now has the locales back) suddenly all menus and UI of Google navigation are displayed in Bulgarian. This is my native language and I suppose is installed due to my Locale settings. Unfortunately no voice guidance due to the missing Bulgarian speech synthesis.

This means that the guys at Google are working to enable the navigation officialy in Europe.
[G1 Android Development] qckuthbutt:
l@@K

wow i almost missed this because of the huge thread. worked great for me and only found it through this website: http://www.g1-news.com/2009/11/30/google-maps-navigation-for-uk-android-phones-hacktivated/

i advise everyone to give this a shot as it was easy peasy.... the only downside is that i now have two google maps apps but thats a small price to pay.

i am a happy bunny :D

im running dwang 1.11
[G1 Android Development] canadiancow:
Those are basically the same instructions as in the first post of this thread, except your link will get you an older version of Google Maps.
[G1 Android Development] djduong:
Thanks again for NavStarter :) I've left you a few comments and a couple of screenshots with version 0.7.4 with the red/green boxes for debugging.

Sorry it took so long, pesky thing called work got in the way ;)
[G1 Android Development] rac2030:
No problem ;-)

I also don't have time at the moment, I have a box on my table where HERO is written on but are not allowed to unpack it before I finished my thesis... I have my final Design review next Wednesday and after that I just have to do finish up and make the presentation.
[G1 Android Development] tdomhan:
remove the maps app

Thanks for the newer mapps application. I installed it successfully. After installing I had two Maps applications installed. Which is fine, though today I was able to upgrade the original maps application. therefor I don't need the ported version anymore. Can anyone tell me how to remove the app from the phone?
[G1 Android Development] jezzaaaa:
So what are you doing on this forum!? You've got more important things to do! Go on, get working. I don't want to see you posting here for at least another week! ;)
[G1 Android Development] Terrandroid:
I dont understand, ive done that to but everytime its trying to plan a route

It Crashes. I did reinstall ,clear dalvik but no luck :(
[G1 Android Development] a2000rick:
using cyanogenmod 4.2.7.1

adb shell find /system /data -name \*google\*maps.apk\* -o -name Maps.apk "|" xargs rm

gives me a strange output ... I'm not sure if it's working

BusyBox v1.15.2 (2009-12-02 21:29:32 EST) multi-call binary

Usage: rm [OPTIONS] FILE...

Remove (unlink) the FILE(s). Use '--' to
indicate that all following arguments are non-options.

Options:
-i Always prompt before removing
-f Never prompt
-r,-R Remove directories recursively

also the file I downloaded is "Maps3.2.1-patched-root.apk", but it says to install adb install -r maps-root-aligned-apk

Maps3.2.1-patched-root.apk won't install on my G1.

825 KB/s (2184048 bytes in 2.584s)
pkg: /data/local/tmp/Maps3.2.1-patched-root.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Any suggestions?

Thanks
[G1 Android Development] rac2030:
remove the quotes from the pipe

adb shell find /system /data -name \*google\*maps.apk\* -o -name Maps.apk|xargs rm
[G1 Android Development] a2000rick:
that doesn't work either. says that xargs is not a valid command.
[G1 Android Development] rac2030:
If you don't have the xargs command, probably your busybox install is not complete
[G1 Android Development] a2000rick:
I don't think it's busybox. The error is from windows command prompt

'xargs' is not recognized as an internal or external command,
operable program or batch file.

and it happens whether or not I have the phone plugged in. I think the "" do some magic, but then I get that error I showed above.

Thanks for your replies.