3 ms·
That catch block is often generated automatically by android studio when you create a try block. Not addressing your comment about the general inadvisability of
by HillaryBriss 8y ago
That catch block is often generated automatically by android studio when you create a try block. Not addressing your comment about the general inadvisability of merely logging the error, one can, as an alternative to standard error printing, replace
e.printStackTrace()
with something like
Log.e(TAG, "Caught and ignored an exception", e)