-1
public void CentralTime()
{
DateFormat format = new SimpleDateFormat("MMMMM d, yyyy, h:mm:ss a");
TimeZone utc = TimeZone.getTimeZone("America/New_York");
GregorianCalendar gc = new GregorianCalendar(utc);
Date now = gc.getTime();
centralTimeJava = (TextView)findViewById(R.id.centralTime);
centralTimeJava.setText(format.format(now));
}
這就是我所說輸出方法。我將如何獲取它,以便秒數在應用程序內保持更新。目前它只會輸出調用方法時的時間。我該如何保持每次更新輸出?