Android : How to get current time of action in Android?

on Sunday, August 3, 2014


How can I get the time an action was performed in the users preset format (24/12Hr)? I'm trying to set a textview with the time an onClick was performed.


EDIT: I've tried



Time currentTime = new Time();
currentTime.setToNow();


However, instead of XX:XX/X:XX I get a bunch of unneeded text.


0 comments:

Post a Comment