现在那个set date 就是今天的日期2014/08/29 怎么改成2014/01/01 等连上wifi或3g时自动更新到今天的日期2014/08/29?
解决方案 »
- 优酷安卓客户端里面的集数是如何显示的?
- 安卓监控软件的开发问题,请各位帮忙想想,分全部供上。。。
- 微云引擎的Chipmunk的shape无法绑定动画!!
- android游戏开发 关于图片路线碰撞检测问题
- WebView的问题,高手来看看!!!!!!!!!!!!!
- log如何指定打印到哪个buffer?
- 【调查】你是先有的android手机再想搞开发的吗
- 请问下如何用真手机做模拟器?
- 关于android的分享功能,如何实现图文混排
- 导入项目后,报错:No resource found that matches the given name
- android开发之 银行卡号图像识别
- android socket 即时通讯 发送图片
static final long SNAPSHOT_INTERVAL = 60 * 60 * 1000; // 1hr // The earliest supported time. We pick one day into 1970, to
// give any timezone code room without going into negative time.
// private static final long EARLIEST_SUPPORTED_TIME = 86400 * 1000;
private static final long EARLIEST_SUPPORTED_TIME = 1388548800000l; //kzc /**
* Called to initialize native system services.
*/
private static native void nativeInit(); public static void main(String[] args) { /*
* In case the runtime switched since last boot (such as when
* the old runtime was removed in an OTA), set the system
* property so that it is in sync. We can't do this in
* libnativehelper's JniInvocation::Init code where we already
* had to fallback to a different runtime because it is
* running as root and we need to be the system user to set
* the property. http://b/11463182
*/
SystemProperties.set("persist.sys.dalvik.vm.lib",
VMRuntime.getRuntime().vmLibrary()); if (System.currentTimeMillis() < EARLIEST_SUPPORTED_TIME) {
// If a device's clock is before 1970 (before 0), a lot of
// APIs crash dealing with negative numbers, notably
// java.io.File#setLastModified, so instead we fake it and
// hope that time from cell towers or NTP fixes it
// shortly.
// Slog.w(TAG, "System clock is before 1970; setting to 1970.");
Slog.w(TAG, "System clock is before 20140101; setting to 20140101."); //kzc
SystemClock.setCurrentTimeMillis(EARLIEST_SUPPORTED_TIME);
}