I'm writing a Java alarm clock app for an Android tablet. When I am writing the code and the tablet is connected to my computer, I can easily see the debugging errors and the logcat. But sometimes it crashes when it is just sitting on my table next to my bed (not connected to my computer). No idea when it crashed. How can I find out what caused it long after the fact? The app is not deployed to the app store. It's just a project I am working on (there are plenty of alarm clock app in the app store!). Is there a way for me to capture the stack trace and most recent log entries just before the crash?