Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COReally? Toast is for a message, not a stream of log output like android.util.Log will take. Try Toast'ing with LENGTH_SHORT 50 times in 10 seconds. You'll be viewing Toasts one after the other for 5 minutes. Also, how are you reading from android.util.Log?
      singulars
    2. CORefer to the question before u decide to down vote. He wanted a way to print log messages to the screen. Note the question was not how to read from log and writing to screen, but controlling it at the time of his code doing the log itself. I was not suggesting writing ALL his logs using toast (which clearly is not a good idea), but if he wanted to see SOME key messages on screen (which was the primary requirement in his question), I still stand by my "alternate" Toast suggestion (in addition to logcat), unless I see your "better and generic" solution which is NOT logcat.
      singulars
    3. COI did. "He wanted a way to print log messages to the screen." No, he wanted a way to print android.util.Log messages to the screen. If you've needed to do this yourself (which I do, which is why I stumbled on this SO question) you wouldn't have suggested Toast, which doesn't help read from Log from an app, nor a method of displaying the kind of messages that are logged to android.util.Log. Log is not just a way to debug where Toast is an alternative debug tool. You can't Toast from just anywhere in an app, but you can Log. A -1 loses points for me as well. This answer doesn't help.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload