My updated code; it doesn't work yet because I've made some changes to the API I need to get Austin to pick up and I haven't modified the Android  stuff yet.