Posts

Showing posts with the label activity-manager

What does “I/ActivityManager: Displayed…activity…+850ms” comprised of?

Image
Clash Royale CLAN TAG #URR8PPP What does “I/ActivityManager: Displayed…activity…+850ms” comprised of? I'm trying to improve display time of my app's activity. I'm using logcat to track my activity display time. Here is an example of a logcat output: I/ActivityManager( 1097): Displayed com.example.myapp/com.example.myapp.activity.TutorialActivity: +850ms (total +1s503ms) Can someone tell me how does the activity manager concludes this is the time takes to diplay the activity? What happens during this time and what does this time takes into account? And what is the difference between the "normal time" and "total time"? I tried to find materials on the matter but no success.. Thank's in advance! 1 Answer 1 This line is printed in com.android.server.am.ActivityRecord.reportLaunchTimeLocked : com.android.server.am.ActivityRecord.reportLaunchTimeLocked private void rep...