Categories
On the web

AndNav2 is now Open Source

Wow this is quite a nice suprise. Nicolas gave in and released the source of AndNav2. So I can now spend my time hacking that instead of reverse-engineering it 🙂 I rooted my HTC Hero so I actually don’t need to do that anymore, but that is really beside the point. With the source available there is no ends to what can be done 🙂

As I have said before, I really think this is a killer app for Android. Google released their navigation which is nice, but I’m not sure how well it works in offline mode.

Categories
android

Andnav2 working on Hero again

First a short background. HTC Hero released with android 1.5. Google releases android 1.6 with TTS (text-to-speech) support. Andnav2 working fine since it uses external tts library. Author of Andnav2 (Nicolas) releases version compatible with android 1.6, but leaves all users of 1.5 devices out in the cold. The update was uploaded to marked with NO warning. After many talks back and forth Nicolas finally agrees to release a version that at least starts up on 1.5, but still crashes when using turn navigation. HTC announces that they are working on a new firmware based on 2.0, but release has not yet been determined.

So with that history out of the way, I now announce a version of AndNav2 that works on HTC Hero by simply removing all the calls to TTS. You can download the version here. Please note that you need to uninstall your previous version of andnav2 first as this version is simply signed with the android beta key.

I could have removed all the ads as well, but that was not the point of this reverse engineering. I simply want to be able to use a program, which in my view, is the killer app for the android phone. Don’t get me started on Google Maps with navigation. It’s US only, not based on OSM, and works only on android >= 1.6.

Enjoy 🙂

Categories
android

Getting android emulator running on Ubuntu 9.10

I had a little trouble getting the android emulator running on my laptop. I wanted to start debugging why andnav2 is no longer working. Hopefully Nicolas can get it fixed, but it appears that he’s quite busy 🙁

The first problem I ran into was that the buttons in the tools/android application where not responding properly. Starting tools/android with the env variable GDK_NATIVE_WINDOWS=1 fixed that problem. Next problem was that the ssl mirror for getting the different SDK versions was not working. A quick google revealed that adding a sdkman.force.http=true to ~/.android/androidtool.cfg fixed that. Do not try to just remove the http. You’ll get the SDKs, but it will not work.

Last problem was getting java jdk working. I settled on openjdk as it seems to be the way forward. Be sure to use java-alternatives to set your java version. Sun-java6 seems to be 9.04 so I should probably remove that at some point. Just don’t want to ruin my webbank 😉

After getting everything up and running I tried the debugging tool and it appears to be really neat. It has tons of debug information, even down to when the GC is running, and was able to give me a proper backtrace of the problem. Another really cool thing is that it’s extremely easy to test ones application one 1.5, 1.6 and 2.0 by simply running 3 different emulators. Or different screen sizes for that matter. One can also see some of the goodies coming in android 2.0. The browser seems to have gotten a nice overhaul. Can’t wait for HTC to release an updated ROM based on 2.0.