Added clear button to Android code

Added clear button and (hopefully) fixed the line ending bug.