Closed Oziomajnr closed 5 years ago
Yes, you can use this
public static void showDebugDBAddressLogToast(Context context) {
if (BuildConfig.DEBUG) {
try {
Class<?> debugDB = Class.forName("com.amitshekhar.DebugDB");
Method getAddressLog = debugDB.getMethod("getAddressLog");
Object value = getAddressLog.invoke(null);
Toast.makeText(context, (String) value, Toast.LENGTH_LONG).show();
} catch (Exception ignore) {
}
}
}
Is there any way to make the url of the database more persistent? When it is outputed to logcat, it is quickly pushed out of the window by recent logcat outputs. Is there any other way I can view the database url outside logcat?