finish running acivity can save date, past record can extract the date from sqlite