From d803805a645b69c3468145b941a3ce9b6310467e Mon Sep 17 00:00:00 2001 From: LiuJingXin <1216219258@qq.com> Date: Thu, 12 May 2016 00:37:33 +0800 Subject: [PATCH] Delete Net1314080903127_course_set_activity.java --- .../Net1314080903127_course_set_activity.java | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903127/Net1314080903127_course_set_activity.java diff --git a/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903127/Net1314080903127_course_set_activity.java b/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903127/Net1314080903127_course_set_activity.java deleted file mode 100644 index 659d6c2f..00000000 --- a/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903127/Net1314080903127_course_set_activity.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * - */ -package edu.hzuapps.androidworks.homeworks.net1314080903127; - -import edu.hzuapps.androidworks.homeworks.net1314080903127; - -import android.app.Activity; -import android.content.Intent; -import android.os.Bundle; -import android.util.Log; -import android.view.View; -import android.view.View.OnClickListener; -import android.widget.Button; -import android.widget.DatePicker; - -public class Net1314080903127_course_set_activity extends Activity { - - Button btn_course_set_confirm; - DatePicker course_first_week; - int year = 0; - int month = 0; - int day = 0; - - /* (non-Javadoc) - * @see android.app.Activity#onCreate(android.os.Bundle) - */ - @Override - protected void onCreate(Bundle savedInstanceState) { - // TODO Auto-generated method stub - super.onCreate(savedInstanceState); - setContentView(R.layout.net1314080903127_course_set); - - btn_course_set_confirm = (Button)findViewById(R.id.btn_course_set_confirm); - btn_course_set_confirm.setOnClickListener(btn_confirm_listener); - - course_first_week = (DatePicker) findViewById(R.id.course_first_week); - day = course_first_week.getDayOfMonth(); - month = course_first_week.getMonth(); - year = course_first_week.getYear(); - Log.e("y1", " " +year); - } - - //°´Å¥¼àÌýº¯Êý - private Button.OnClickListener btn_confirm_listener = new OnClickListener() - { - @Override - public void onClick(View v) { - - day = course_first_week.getDayOfMonth(); - month = course_first_week.getMonth(); - year = course_first_week.getYear(); - //Log.e("y", " " +year); - // TODO Auto-generated method stub - Bundle bundle = new Bundle(); - bundle.putInt("year", year); - bundle.putInt("month", month); - bundle.putInt("day", day); - - Intent intent = new Intent(); - intent.putExtras(bundle); - setResult(RESULT_OK, intent); - Log.e("y2", " " +year); - finish(); - } - }; - -}