Created
September 15, 2015 02:57
-
-
Save mr5z/a35f1d9ffb4e60978afa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void appendLog(String msg) { | |
mLogContent.add(msg); | |
getActivity().runOnUiThread(new Runnable() { | |
@Override | |
public void run() { | |
String formattedMsg = ""; | |
Iterator<String> iter = mLogContent.iterator(); | |
while( iter.hasNext() ) { | |
String m = iter.next(); | |
formattedMsg += m + "\n"; | |
} | |
mTxtLogs.setText(formattedMsg); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment