Transfered code to Android app