Thursday, October 24, 2019

java convert exception stack trace to string

StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
sw.toString();

Wednesday, October 2, 2019

solution for android sharedpreferences is not updated when using stringset data

Just read the docs. The StringSet returned from prefs should not be modified. Make a copy.