-3

Can any one please tell me how to use logcat? for example I get the error:

Null point exception at activity thread Java.2121. what does 2121 here refer to? Is it some line of code? How do I access it?

ThomasW
  • 16,981
  • 4
  • 79
  • 106
liall
  • 1
  • 3

2 Answers2

2

Do not rely on the first line of the exception. Sometimes it happens from the middle when it started calling it. Check the last call to your activity class. That is the root of your problem.

Alex Sales
  • 176
  • 1
  • 7
2

It is not certain that the first line of the logcat itself shows the exact error. If you want to get the error from logcat in simplest way then try to find out your package name in that means for an example if your package name is com.test.firstapp then check for this in logcat...after that check for the statement it have then definitely you'll get the idea from that....Hope this'll help you :)

Toppers
  • 559
  • 3
  • 11