-2

In my app when some services of it are running it suddenly displays that message on some occasions, but most of the time they work properly, when I've tested them I haven't had any problem.

I'd like to know if its possible to associate the event that causes that message to appear, with giving some extra information or at the very least writing a log that at least shows which class and what line of code causes the error.

From there I could investigate with greater ease what makes that message to appear, as right now I've no clue.

user2638180
  • 1,013
  • 16
  • 37

1 Answers1

2

I'd like to know if its possible to associate the event that causes that message to appear, with giving some extra information or at the very least writing a log that at least shows which class and what line of code causes the error.

Every time that dialog appears, a Java stack trace is written to LogCat automatically. You can use Android Studio or other development tools to examine LogCat.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491