How to get time when android activity started?
I need to get the time stamp when activity is started.and also the the cu开发者_开发问答rrent time when an activity is running. Thanks in advance
Why not writing the current time to a Date field in the onCreate
method? You get the current time via System.currentTimeMillis()
.
精彩评论