I have written some android application , while doing some testing it crashes .
but I dont know the reasin for crashing .. so I need to save the reason for crashing in some file so that later I can see that .. since I wont connect that to the PC while apllication is running , I need some suggestion to save the reason for crashing ..?
You can do a try catch block: