如何打开应用程序后,进入当天的当前日期? [英] How to access the current date of the day after opening the app?

查看:105
本文介绍了如何打开应用程序后,进入当天的当前日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/6487797/how-to-access-the-current-date-of-the-day-after-opening-the-app\">How打开应用程序后访问当天的当前日期?


我工作的一个项目,与将要迎合视障压光。我怎样才能让这个我的日历应用程序启动时,它显示当前的日期,而不是​​正常的网格视图?


解决方案

 时间t =新时代();
t.se​​tToNow();

Possible Duplicate:
How to access the current date of the day after opening the app?

I'm working on a project with calenders that are going to cater to the visually impaired. How can I make it so that when my calender app starts, it shows the current date instead of the normal grid view?

解决方案

Time t = new Time();
t.setToNow();

这篇关于如何打开应用程序后,进入当天的当前日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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