changed printStackTrace to Log.e(getStackTraceString)