When I carry my phone in my pocket [Moto X 1st gen w/Android 5.1] or if I pick it up from my desk or sometimes if I just touch it, the phone often opens an arbitrary app and takes some arbitrary action in the app. How can I prevent this from happening?