问题
The Android Developer documentation does not mention whether the method below (and similar ones) is synchronous or not: Log.i(String tag, String msg)
Can anyone shed some light on this ?
回答1:
android.util.Log
invokes all of its methods on the calling thread. So yes, it is synchronous (and IMO it would be kind of silly if it wasn't).
You can find the source code here.
来源:https://stackoverflow.com/questions/11237445/are-android-logging-methods-asynchronous