Fix Java Android tutorial code