如何比较Web服务日期的日历日期在Android中? [英] How to compare web service date to calendar date in Android?
本文介绍了如何比较Web服务日期的日历日期在Android中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Web服务响应来自格式为: 19/2/2011
。我希望此Web服务日期进行比较,以我自己的日历日期。
有没有答案,如何突出该日期?
解决方案
最后线程t =新主题(新的Runnable(){
@覆盖
公共无效的run(){
parseData();
}
});
t.start();
线T1 =新主题(新的Runnable(){
@覆盖
公共无效的run(){
尝试 {
t.join();
}赶上(InterruptedException异常E){
e.printStackTrace();
}
//分割字符串在这里,并检查他们
}
});
t1.start();
My web service response comes in this format: 19/2/2011
. I want to compare this web service date to my own calendar date.
Is there any answer and how to highlight that date?
解决方案
final Thread t = new Thread(new Runnable() {
@Override
public void run() {
parseData();
}
});
t.start();
Thread t1 = new Thread(new Runnable() {
@Override
public void run() {
try {
t.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
//Split strings here and check them
}
});
t1.start();
这篇关于如何比较Web服务日期的日历日期在Android中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文