package exam.timezone1;
import java.util.Calendar;
import java.util.TimeZone;
import android.app.Activity;
import android.util.Log;
public class timezone1 extends Activity {
private static final String TAG = "InputActivity";
/** Called when the activity is first created. */
public String getTimeZoneTime(){
String time;
String timezone = null;
Log.d(TAG,"TIMEZONE"+timezone);
Calendar cal=Calendar. getInstance();
cal.setTimeZone(TimeZone.getTimeZone(timezone));
time=""+cal.get(Calendar.HOUR_OF_DAY)+":"+cal.get(Calendar.MINUTE);
Log.d(TAG,"TIME"+cal.get(Calendar.HOUR_OF_DAY));
Log.d(TAG,"TIME"+cal.get(Calendar.MINUTE));
Log.d(TAG,time);
return time;
}
}
여기에서 결과화면이 검은색화면으로 나오는데
어느부분이 잘못됫는지 모르겠어서요
알려주셨으면 합니다.