1.首先我们的目的是长期监听时间变化,其实应用程序退出。
通过了解我们知道注册ACTION_TIME_TICK广播接收器可以监听系统事件改变,但是
查看SDK发现ACTION_TIME_TICK广播事件只能动态注册:
Broadcast Action: The current time has changed. Sent every minute. You can not receive t...
分类:
移动开发 时间:
2014-06-05 08:35:13
阅读次数:
285
eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found in configuration
如图:
这是因为 在用gui创建分支的时候 config文件没有创建branch
在config文件加上
[branch "xxx"]
...
分类:
系统相关 时间:
2014-06-05 05:15:19
阅读次数:
326
.destination1 .current{ display:block;
animation:danru 2s linear infinite; -webkit-animation:danru 2s linear alternate
; -moz-animatio...
分类:
其他好文 时间:
2014-06-04 20:53:25
阅读次数:
332
24小时制时间显示:public class Datetime { public static
void main(String args[]){ java.util.Date current=new java.util.Date();
java.text....
分类:
编程语言 时间:
2014-05-30 20:21:37
阅读次数:
357
http://blog.chinaunix.net/uid-23577393-id-1751983.htmlTo
count how often any pattern occurs in the current buffer use the
substitutecommand and add th...
分类:
其他好文 时间:
2014-05-29 17:37:03
阅读次数:
217
Windows XP 步骤如下:1 点击 开始2 点击 运行3 输入 regedit4 点击 确定5
点击 HKEY_CURRENT_USER 左边加号+6 点击 Software 左边加号 +7 点击 zdedumanager8 右键点击 AppServer
IP:9 点击 修改10 输入新的IP...
分类:
其他好文 时间:
2014-05-29 01:32:28
阅读次数:
281
Bitmap memoryImage; private void
CaptureScreen() { Graphics myGraphics = this.CreateGraphics(); Size s =
this.Siz...
分类:
其他好文 时间:
2014-05-28 13:31:12
阅读次数:
275
#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
You could use:Calendar c
=Calendar.getInstance();int seconds = c.get(Calendar.SECOND);There are plenty of
constants in Calendar for everything you nee...
分类:
移动开发 时间:
2014-05-27 17:13:56
阅读次数:
512
SELECT DATE; Date--------14/05/24SELECT
CURRENT_DATE; Date--------14/05/24SET SESSION DATEFORM=ANSIDATE; /*ANSI default
format (YYYY-MM-DD) */...
分类:
其他好文 时间:
2014-05-25 03:44:23
阅读次数:
350