WORKS AGAIN. ported over to android studio from eclipse