I am using android.text.format.Time and i need to have a function which gets a string and converts that string into a Time object. I initially stored the time object as string for some other reason. I just need to pasre teh string into Time object now. Code:
Time time = new Time();
String time = time.toString();
Time t = new Time();
t.parse(time);
this.time = t;
Now
t.parse(time)
gives a boolean value.
boolean value = time.parse(s)
Parameters: time - the string to parse Returns: true - if the resulting time value is in UTC time