2013年10月22日

Ubuntu和Busybox下用make menuconfig配置出错解决

摘要: http://blog.csdn.net/satiling/article/details/6965985# make menuconfigIn file included from scripts/kconfig/lxdialog/checklist.c:24:scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: 没有那个文件或目录In file included from scripts/kconfig/lxdialog/checklist.c:24:scripts/kconfig/lxdialog/dialog.h:128: 阅读全文

posted @ 2013-10-22 16:44 屁屁侠 阅读(844) 评论(0) 推荐(0)

SimpleDateFormat转换时间,12,24时间格式

摘要: Date d = new Date(); SimpleDateFormat ss = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");//12小时制 System.out.println(ss.format(d)); Date date = new Date(); SimpleDateFormat sdformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//24小时制 String LgTime = sdformat.format(date);... 阅读全文

posted @ 2013-10-22 16:16 屁屁侠 阅读(562) 评论(0) 推荐(0)

Android---AlarmManager(全局定时器/闹钟)指定时长或以周期形式执行某项操作

摘要: http://www.cnblogs.com/jico/archive/2010/11/03/1868361.htmlAlarmManager的使用机制有的称呼为全局定时器,有的称呼为闹钟。通过对它的使用,个人觉得叫全局定时器比较合适,其实它的作用和Timer有点相似。都有两种相似的用法:(1)在指定时长后执行某项操作(2)周期性的执行某项操作AlarmManager对象配合Intent使用,可以定时的开启一个Activity,发送一个BroadCast,或者开启一个Service.下面的代码详细的介绍了两种定时方式的使用:(1)在指定时长后执行某项操作//操作:发送一个广播,广播接收后Toa 阅读全文

posted @ 2013-10-22 16:08 屁屁侠 阅读(500) 评论(0) 推荐(0)

Android AlarmManager的一些问题

摘要: 我开始的代码是这样写的 alarmManager.set(AlarmManager.RTC_WAKEUP, (5*1000), sender); 我的本意是设定五秒后启动闹钟 但是每次都是我设置完闹钟之后立马就启动了。后来我发现问题出在第二个参数上 我对他的理解是错误的typeOne of ELAPSED_REALTIME, ELAPSED_REALTIME_WAKEUP}, RTC or RTC_WAKEUP.triggerAtTimeTime the alarm should first go off, using the appropriate clock (depending on . 阅读全文

posted @ 2013-10-22 16:02 屁屁侠 阅读(2978) 评论(0) 推荐(0)

导航