我想使用android编码在我的应用程序中每隔五秒使用一次自动更新时间 [英] I wants to use automatic update time for every five sec in my application using android coding

查看:85
本文介绍了我想使用android编码在我的应用程序中每隔五秒使用一次自动更新时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

An Anandraj,我是Android新手,我创建了一个应用程序,因为我想使用自动更新时间。我想在我的应用程序中使用android编码每隔五秒使用自动更新时间..请任何人帮我立即实现此目标..

解决方案

嗯,使用天文台 [ ^ ]。!!



根据doucmentation(如果我没错;)):

这是一个实现一个简单的计时器的类。



您可以使用 elapsedRealtime() [ ^ ]。



-KR


Am Anandraj, Am new to Android, I created one appllication , In that I want to Use automatic update time. I wants to use automatic update time for every five sec in my application using android coding.. Please any one help me immediately to achieve this target..

解决方案

Well, use Chronometer[^].!!

As per the doucmentation (if I'm not wrong ;)):
It is a class that implements a simple timer.

You can use elapsedRealtime()[^] of this class.

-KR


这篇关于我想使用android编码在我的应用程序中每隔五秒使用一次自动更新时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆