开发者

How to get time when android activity started?

开发者 https://www.devze.com 2023-04-12 03:58 出处:网络
I need to get the time stamp when activity is started.and also the the cu开发者_开发问答rrent time when an activity is running.

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消