Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Logcat: How do I output a log message with a TAB character?

In Java, System.out.printf("\t") gives a TAB character in the Console.

I wanted to have that function in the Logcat DDMS, by outputting a TAB character in my log message.

public void testLogMessage(){
    Log.d("Test", "TAB: " + "\t" + "AAAAAAAA" + "\t" + "AAAAAAAAA");
}

However, in the Logcat, I do not see the TAB character in the A's.

If possible, how should I output the TAB character in the Logcat? Thanks in advance.

EDIT:

Probably I didn't make my question clear. I want to show up the TAB control character on this:

Logcat

I just could not get the TAB character to show up. Thanks in advance.

like image 400
tom_mai78101 Avatar asked Jul 16 '12 13:07

tom_mai78101


1 Answers

If no one is able to prove that TAB characters can be outputted to Logcat, then I guess it means Logcat isn't able to display TAB characters.

I do not have a workaround for the TAB characters, nor do I wish to continue fixing this problem.

like image 179
tom_mai78101 Avatar answered Sep 18 '22 00:09

tom_mai78101