First, if you have not already done so, you should wrap your code in a try-catch structure, for example, as follows:
private String TAG = "MyMethodName"; // change this to anything that makes sense to you try { ... Log.d(TAG, "processed OK"); } catch (Exception except) { Log.e(TAG,"CRASH StackTrace: "+ Arrays.toString(except.getStackTrace())); }
This pseudo code will show the full stack trace.
NEWBIE ALERT: Before publishing the application, be sure to βcommentβ (using // ) this and all debugging functions that can be used to display the internal components of your code. Anyone who connects a device using your code with ADB enabled will be able to access LogCat (where Log publishes).
tony gil
source share