Side projects, and non-profit work. Always in search of the indefinable hack.

Saturday, October 27, 2012

Working with JSON and ListPreferences! Wooo Doggy, exciting!

So today, I made a preference screen, that dynamically pulled down JSON data.. and displayed it.

The issue with the Kiosks that it is resolving is pretty simple. At read and respond, the person in charge wants to be able to see how long someone has been clocked in at their station. Well, the current app didn't have any way really to give that information. So, I added a web service method that would return that information for a given kiosk. In .NET this was easy. On the android side it took a little reading, and fiddling though.

This is how I do my HTTP requests. I changed the URL to protect the innocent,
and it should allow me to use certificates in the headers eventually, so that only clients with
the right signature have access to the web service.