Code for the android application that interfaces Cascade