android - what is message queue native poll once in android?
问题 I know that threads have a message queue and handlers are able to push runnables or messages to them, but when I profile my android application using Android Studio tools, there is an strange process: android.os.MessageQueue.nativePollOnce It uses the CPU more than all other processes. What is it and how can I reduce the time that the CPU spends on that? You can find the profiler result in the below. 回答1: Short answer: The nativePollOnce method is used to "wait" till the next Message becomes