diff --git a/SoftEngineering_selectiveCourse/.gitignore b/SoftEngineering_selectiveCourse/.gitignore
new file mode 100644
index 0000000..ebdd23d
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.gitignore
@@ -0,0 +1,14 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
diff --git a/SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml b/SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..7fb7384
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xmlns:android
+
+ ^$
+
+
+
+
+
+
+
+
+ xmlns:.*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*:id
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ .*:name
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ name
+
+ ^$
+
+
+
+
+
+
+
+
+ style
+
+ ^$
+
+
+
+
+
+
+
+
+ .*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*
+
+ http://schemas.android.com/apk/res/android
+
+
+ ANDROID_ATTRIBUTE_ORDER
+
+
+
+
+
+
+ .*
+
+ .*
+
+
+ BY_NAME
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/dbnavigator.xml b/SoftEngineering_selectiveCourse/.idea/dbnavigator.xml
new file mode 100644
index 0000000..1ca4006
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/dbnavigator.x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..8708f9d
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/gradle.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/jarRepositories.xml b/SoftEngineering_selectiveCourse/.idea/jarRepositories.xml
new file mode 100644
index 0000000..17c8136
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/misc.xml b/SoftEngineering_selectiveCourse/.idea/misc.xml
new file mode 100644
index 0000000..f797995
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/runConfigurations.xml b/SoftEngineering_selectiveCourse/.idea/runConfigurations.xml
new file mode 100644
index 0000000..9b770a6
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml b/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
new file mode 100644
index 0000000..e719ebb
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarSettings.xml b/SoftEngineering_selectiveCourse/.idea/sonarSettings.xml
new file mode 100644
index 0000000..1466328
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarSettings.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e
new file mode 100644
index 0000000..e69de29
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
new file mode 100644
index 0000000..1193101
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
@@ -0,0 +1,3 @@
+
+P
+ app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/.gitignore b/SoftEngineering_selectiveCourse/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/build.gradle b/SoftEngineering_selectiveCourse/app/build.gradle
new file mode 100644
index 0000000..64e9e9c
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/build.gradle
@@ -0,0 +1,40 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.2"
+
+ defaultConfig {
+ applicationId "com.example.softengineering_selectivecourse"
+ minSdkVersion 14
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: "libs", include: ["*.jar"])
+ implementation 'androidx.appcompat:appcompat:1.2.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ implementation 'com.google.android.material:material:1.0.0'
+ implementation 'androidx.annotation:annotation:1.1.0'
+ implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+ implementation 'org.litepal.android:core:1.5.1'
+ //noinspection GradleCompatible
+ implementation 'com.android.support:appcompat-v7:27.0.1'
+
+
+}
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/proguard-rules.pro b/SoftEngineering_selectiveCourse/app/proguard-rules.pro
new file mode 100644
index 0000000..64b4a05
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java b/SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..4715ef9
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.softengineering_selectivecourse;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("com.example.softengineering_selectivecourse", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml b/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..a6f3c00
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml b/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
new file mode 100644
index 0000000..3c5b078
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
new file mode 100644
index 0000000..5a65ce5
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
@@ -0,0 +1,46 @@
+package com.example.softengineering_selectivecourse;
+
+import org.litepal.crud.DataSupport;
+
+public class Comments extends DataSupport {
+ private int id;
+ private String comments;
+ private User provider = new User();
+ private Course course = new Course();
+ private User.courseIdentification CourseOf;
+ private Course.userIdentification UserOf;
+ private float point;
+
+ public Course getCourse() {
+ return course;
+ }
+
+ public float getPoint() {
+ return point;
+ }
+
+ public String getComments() {
+ return comments;
+ }
+
+ public User getProvider() {
+ return provider;
+ }
+
+ public void setComments(String comments) {
+ this.comments = comments;
+ }
+
+ public void setCourse(Course course) {
+ this.course = course;
+ }
+
+
+ public void setPoint(float point) {
+ this.point = point;
+ }
+
+ public void setProvider(User provider) {
+ this.provider = provider;
+ }
+}
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
new file mode 100644
index 0000000..85a6e57
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
@@ -0,0 +1,118 @@
+package com.example.softengineering_selectivecourse;
+
+import org.litepal.crud.DataSupport;
+
+import java.util.ArrayList;
+
+public class Course extends DataSupport {
+ private int id;
+
+ private String name;
+ private String teacher;
+ private String classFeature;
+ private int credit;
+ private int classtime;
+ private int NumOfCourseSelected;
+ private int NumOfCourseNeeded;
+ private String brief_introduction;
+ private ArrayList selected = new ArrayList();
+ private ArrayList comments = new ArrayList();
+
+ private ArrayList numOfStuSelected= new ArrayList();
+ private ArrayList Comments = new ArrayList();
+
+ public class userIdentification{
+ private int id;
+ private String name;
+ }
+ public ArrayList getComments() {
+ return comments;
+ }
+
+ public String getClassFeature() {
+ return classFeature;
+ }
+
+ public void setClassFeature(String classFeature) {
+ this.classFeature = classFeature;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public ArrayList getSelected() {
+ return selected;
+ }
+
+ public int getClasstime() {
+ return classtime;
+ }
+
+ public int getCredit() {
+ return credit;
+ }
+
+
+ public int getNumOfCourseNeeded() {
+ return NumOfCourseNeeded;
+ }
+
+ public int getNumOfCourseSelected() {
+ return NumOfCourseSelected;
+ }
+
+ public String getBrief_introduction() {
+ return brief_introduction;
+ }
+
+ public String getTeacher() {
+ return teacher;
+ }
+
+ public void setComments(ArrayList comments) {
+ this.comments = comments;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void setBrief_introduction(String brief_introduction) {
+ this.brief_introduction = brief_introduction;
+ }
+
+ public void setClasstime(int classtime) {
+ this.classtime = classtime;
+ }
+
+ public void setCredit(int credit) {
+ this.credit = credit;
+ }
+
+
+ public void setNumOfCourseNeeded(int numOfCourseNeeded) {
+ NumOfCourseNeeded = numOfCourseNeeded;
+ }
+
+ public void setNumOfCourseSelected(int numOfCourseSelected) {
+ NumOfCourseSelected = numOfCourseSelected;
+ }
+
+ public void setSelected(ArrayList selected) {
+ this.selected = selected;
+ }
+
+ public void setTeacher(String teacher) {
+ this.teacher = teacher;
+ }
+
+}
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
new file mode 100644
index 0000000..17066ac
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
@@ -0,0 +1,14 @@
+package com.example.softengineering_selectivecourse;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.os.Bundle;
+
+public class CourseBasicInfoActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_course_basic_info);
+ }
+}
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java
new file mode 100644
index 0000000..a9cd600
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java
@@ -0,0 +1,280 @@
+package com.example.softengineering_selectivecourse;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.ListView;
+import android.widget.SimpleAdapter;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import org.litepal.crud.DataSupport;
+import org.litepal.util.DBUtility;
+import org.w3c.dom.Text;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class CourseRecommendedActivity extends AppCompatActivity {
+ private TextView textClikedCourse;
+ private Button attendCourse;
+ private Button getCourseDetails;
+ private ListView lv;
+
+
+
+ private ArrayList