I need to obtain time from my AnalogClock as a String and pass it as argument in a method. Wonder whats the method of AnalogClock to return current Time.
Thank you.
I need to obtain time from my AnalogClock as a String and pass it as argument in a method. Wonder whats the method of AnalogClock to return current Time.
Thank you.
AnalogClock widget doesn't have methods/properties for accessing the time. You need to create a new Date() object and then apply DateFormat.format method to it.