Android的常规任务(相当于的cronjob) [英] Android regular task (cronjob equivalent)

查看:242
本文介绍了Android的常规任务(相当于的cronjob)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后一次这个问题被问(由不同的用户),答案的回答是:

The last time this question was asked (by a different user), the answer response was:

如果这是在运行的活动,您可以使用定时器/ TimerTask的和处理程序,或者你可以使用postDelayed()和AsyncTask的。

If this is in a running activity, you could use Timer/TimerTask and a Handler, or you could use postDelayed() and an AsyncTask.

下面: Android的重复性任务

我仍然在学习如何编程机器人。我已经通过这个技能我知道,包括线程了,有很多问题,我的code。任何人都可以提供如何使用一个例子:时间/ TimerTask的程序和处理程序或postDelayed()和AsyncTask的

I am still learning how to program android. I have gone through the skills I do know including threads and had many issues with my code. Can anyone give an example of how to use: time/timertask and handler OR postDelayed() and AsyncTask.

在此先感谢:)

推荐答案

我有一种感觉,这可能会帮助:的 http://www.tutorialforandroid.com/2009/01/using-handler-in-android.html

I have a feeling this may help: http://www.tutorialforandroid.com/2009/01/using-handler-in-android.html

这篇关于Android的常规任务(相当于的cronjob)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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