Update TextEditorActivity.java

put file write into background thread.