Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
System.currentTimeMillis() 在Android 2.0 的 Motorola Droid 上,调用总是返回 0。在 2.0 和 1.5 之间的 API 差异中没有提到对 System 的更改,因此要么以某种方式遗漏了它,要么这是一个 Droid 依赖项。有谁知道如何以满足 Android 1.5、Android 2.0 和所有硬件的方式获取 currentTimeMillis?最好的祝福!
System.currentTimeMillis()
它适用于我的摩托罗拉 DROID,Android 2.0,很好。你可以在某个地方发布一个给你错误结果的项目吗?