对于postAtTime:
@H_502_24@
public final boolean postAtTime (Runnable r,long uptimeMillis)
...
uptimeMillis
The absolute time at which the callback should run,using the uptimeMillis() time-base.
...
对于postDelayed:
@H_502_24@
public final boolean postDelayed (Runnable r,long delayMillis)
...
delayMillis
The delay (in milliseconds) until the Runnable will be executed.
...
如果仍然不清楚,postDelayed()会在当前时间X毫秒后运行.而postAtTime()在指定的时间XX:YY:ZZ.mmm运行.
总结以上是内存溢出为你收集整理的android在handler.postAtTime和handler.postDelayed之间的区别全部内容,希望文章能够帮你解决android在handler.postAtTime和handler.postDelayed之间的区别所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)