Change for compatiblity with API-19
Switch to android studio and fix bugs.