This is talking to the JSinterface in the android app.