title: Android. Exception handling
body: <p>I would like to be able to determine, in case an exception occurs while the user is using my application, where exactly the exception took place. I'd like to do something similar ti printStackTrace() method. (So this is during build mode, not debug mode  )</p>
  
  <p>Currently I've put almost all my methods from all my classes inside a try-catch statement (each method has a try-catch statement which encompasses all it's instructions) and i can, at this point, display the "tree" or stack of methods if an exception occurs. But is there a way to determine either a line number of something to more precisely indicate where inside the method the exception occurred? Similar to what is displayed when you use printStackTrace().</p>
  
  <p>I'm not really used with Exception handling, what is the best practice for doing this and can in be done?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>And one other thing. When i use printStackTrace() during build mode, where does it display the content, because Logcat isn't available? Can i retrieve that information and maybe do something with it?
  <strong>OR</strong>
  Even better, can i use getStackTrace() during build mode and convert the stuff there in String and maybe output it somewhere?</p>