Why is my Android app not working properly?