I am working on a motion event activity. When user touch screen logcat shows some messages. And how can I create a file and save this messages to the file ? Can someone help me in fixing the code. (android studio)