我如何制作时间戳? [英] How Do I Make A Time Stamp ?

查看:349
本文介绍了我如何制作时间戳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个andriod应用程序 - (按下按钮?它像按钮点击事件的时间戳一样保存,我不知道怎么做,我需要一个数据库,所有的数据存储在?

i want to make a andriod app - ( press the button ? and it saves like a time stamp of the time of the button click event , i have no idea on how to do it, do i need a database where all the data gets stored in ?

推荐答案

如果您不知道,那么现在是时候阅读一些关于android开发的介绍性资料,例如,参见\"Getting Started [ ^ ]。



If you have no idea, then it is time to read some introductory material on android development, see, for instance "Getting Started"[^].

Quote:

我需要一个存储所有数据的数据库吗?

do i need a database where all the data gets stored in ?

你需要持久存储,因此,数据库是适合的(你知道 Android 提供 SQLite ,请参阅Android - SQLite数据库教程 [ ^ ]。您也可以将文件用作持久存储。

You need persistent storage, hence, yes a database would fit (you know Android provides SQLite, see "Android - SQLite Database Tutorial"[^]. You could as well use a file as persistent storage.


这篇关于我如何制作时间戳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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