Converting Code over to android app