Sunday, March 20, 2011

Thanks to android intents, it is easy to include functionality from other apps to you own. Say for example you have an app that should be able to read QR-codes. You could easily call a barcode scanner to do the dirty work for you and just bother about the result.

This is a raw copy/paste from the ZXING-project. Nothing that I can take credit for, but I have tested it and it works as a charm.

Yes, it requires the user to have the Barcode Scanner installed. This can be handled smoothly by calling url instead - if the barcoder is installed - it will launch - otherwise launch a web browser (with a install guide of course). Very nice!

That's it - using the combination of WebVievClient and JavascriptInterface is very powerful - drawback is that I have not found an easy way of debugging javascript - if your javascript fails it will fail silent.

Nice thing is you can test your javascript on Firefox using Firebug on your main computer before adding code to your android project.

Saturday, March 12, 2011

TravAlert Lite has been updated.
It's a minor update but I hope you will enjoy the new features.

Account Editor
The Account Editor will no longer accept empty username or password and it will also validate the server to at least somewhat correct.

Notification settings
If you go to settings you will see that the notifications has got its own preference screen and you can now set ring tone/vibration separately for incoming attacks, no incoming attacks and error-notifications.

This way you can have your application launched from a QR-code containing the specific URL. Nice thing is that if the app isn't installed the user will most likely have the url opened in a browser instead.