This is a tutorial on how to get the log files on Android:
- Install Android studio version 2.3.3
- Install Android SDK (https://developer.android.com/sdk/index.html?hl=i)
- Install Java
- Set adb in windows path file (http://stackoverflow.com/questions/20564514/adb-is-not-recognized-as-an-internal-or-external-command-operable-program-or)
- In older Android SDK you can find Monitor.bat tool (example: “D:\adt-bundle-windows-x86-20140702\sdk\tools”), Start Monitor.bat (if it complains it cannot find Java a restart of computer helps). With old Android Studio, you can use monitor.bat to get the log files, make screenshots, see device memory usage and a lot more features.
With a new Android studio, the Android Device Monitor is deprecated and replaced with new features, that can be used instead: https://developer.android.com/studio/profile/monitor.
- Device has to be set with USB debugging enabled (Device Settings > System > About phone > Tap 5 times on the Build number > Developer options becomes enabled > Go back > Open Developer options > Turn ON USB debugging)
- For a best crash log select “error” instead of “verbose”
7. Try to localize the crash, for example on this crash the relevant log starts here:10-25 19:35:10.719: E/AndroidRuntime(11853): FATAL EXCEPTION: mainand ends here:10-25 19:35:10.719: E/AndroidRuntime(11853): at android.view.ViewRootImpl$TraversalRunnable.run(V
NB! When you are ready to save the file, always do so in .txt format.