开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜