├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ └── huanying.png │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── layout │ │ │ │ ├── activity_moni.xml │ │ │ │ ├── activity_welcome.xml │ │ │ │ ├── activity_cuotiji.xml │ │ │ │ ├── activity_neiwu.xml │ │ │ │ ├── activity_gjs.xml │ │ │ │ ├── activity_jbz.xml │ │ │ │ ├── activity_duilie.xml │ │ │ │ ├── activity_jcjs.xml │ │ │ │ ├── activity_jilv.xml │ │ │ │ ├── activity_jsll.xml │ │ │ │ ├── activity_xljc.xml │ │ │ │ ├── activity_zzjc.xml │ │ │ │ ├── activity_mima.xml │ │ │ │ ├── activity_liwai.xml │ │ │ │ ├── activity_danxuan.xml │ │ │ │ ├── activity_panduan.xml │ │ │ │ ├── activity_duoxuan.xml │ │ │ │ └── activity_leibie.xml │ │ │ └── raw │ │ │ │ ├── jbz_lw.txt │ │ │ │ ├── xljc_pd.txt │ │ │ │ ├── dl_dx.txt │ │ │ │ ├── jl_dx.txt │ │ │ │ ├── nw_lw.txt │ │ │ │ ├── zzjc_danx.txt │ │ │ │ ├── zzjc_pd.txt │ │ │ │ ├── jcjs_dx.txt │ │ │ │ ├── jsll_pd.txt │ │ │ │ ├── jcjs_pd.txt │ │ │ │ ├── zzjc_dx.txt │ │ │ │ ├── xljc_danx.txt │ │ │ │ ├── jsll_dx.txt │ │ │ │ ├── jcjs_danx.txt │ │ │ │ ├── xljc_dx.txt │ │ │ │ ├── jbz_dx.txt │ │ │ │ ├── jbz_danx.txt │ │ │ │ ├── jl_pd.txt │ │ │ │ └── gjs_danx.txt │ │ ├── cpp │ │ │ └── native-lib.cpp │ │ ├── java │ │ │ └── com │ │ │ │ └── boring │ │ │ │ └── duanqifeng │ │ │ │ └── tku │ │ │ │ ├── Moni.java │ │ │ │ ├── Cuotiji.java │ │ │ │ ├── Mima.java │ │ │ │ ├── Gjs.java │ │ │ │ ├── Xljc.java │ │ │ │ ├── Zzjc.java │ │ │ │ ├── Jilv.java │ │ │ │ ├── Jsll.java │ │ │ │ ├── Duilie.java │ │ │ │ ├── Jcjs.java │ │ │ │ ├── Jbz.java │ │ │ │ ├── Neiwu.java │ │ │ │ ├── Welcome.java │ │ │ │ ├── Leibie.java │ │ │ │ └── Liwai.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── boring │ │ │ └── duanqifeng │ │ │ └── tku │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── boring │ │ └── duanqifeng │ │ └── tku │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── CMakeLists.txt ├── settings.gradle ├── README.md ├── .idea ├── copyright │ └── profiles_settings.xml ├── inspectionProfiles │ ├── profiles_settings.xml │ └── Project_Default.xml ├── modules.xml ├── encodings.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Android_TKU 2 | 当初做的一个军事理论的刷题app,实现了随机出题,记录/清除刷题进度,记录错题集等功能。类似驾考宝典科目一的形式 3 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/huanying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/drawable/huanying.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Duanxiaoer/Android_TKU/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #040d3e 4 | #7383e6 5 | #b4476c 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 09 23:11:38 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/cpp/native-lib.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | extern "C" 5 | JNIEXPORT jstring JNICALL 6 | Java_com_boring_duanqifeng_tku_MainActivity_stringFromJNI( 7 | JNIEnv *env, 8 | jobject /* this */) { 9 | std::string hello = "Hello from C++"; 10 | return env->NewStringUTF(hello.c_str()); 11 | } 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/boring/duanqifeng/tku/Moni.java: -------------------------------------------------------------------------------- 1 | package com.boring.duanqifeng.tku; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class Moni extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_moni); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_moni.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_welcome.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/raw/jbz_lw.txt: -------------------------------------------------------------------------------- 1 | 1、2016年9月13日,中央军委联勤保障部队正式成立,联勤保障部队由一个联勤保障基地和五个保障中心组成,其中,联勤保障基地所在地是( )。 ( ) 2 | A、西宁 3 | B、沈阳 4 | C、郑州 5 | D、武汉 6 | E、无锡 7 | F、桂林 8 | D 9 | 2、当前,属于军委机关的是( )。 ( ) 10 | A、总参谋部 11 | B、总政治部 12 | C、联合参谋部 13 | D、后勤保障部 14 | E、训练管理部 15 | F、总后勤部 16 | CDE 17 | 3、新体制下军委机关的职能定位是( ) ( ) 18 | A、领率机关 19 | B、服务机关 20 | C、执行机关 21 | D、参谋机关 22 | E、指挥机关 23 | 24 | BCD 25 | 测试完成 -------------------------------------------------------------------------------- /app/src/test/java/com/boring/duanqifeng/tku/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.boring.duanqifeng.tku; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TKu 3 | 1+2= 4 | A.3 5 | B.1 6 | 1.0.0 7 | 8 | 0+2= 9 | A.1 10 | B.2 11 | 12 | 2+2= 13 | A.1 14 | B.2 15 | C.3 16 | D.4 17 | 18 | 2 X 2= 19 | A.3 20 | B.4 21 | 22 | 提交 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/boring/duanqifeng/tku/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.boring.duanqifeng.tku; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.boring.duanqifeng.tku", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/duanqifeng/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_cuotiji.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "com.boring.duanqifeng.tku" 8 | minSdkVersion 19 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | externalNativeBuild { 14 | cmake { 15 | cppFlags "" 16 | } 17 | } 18 | } 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | externalNativeBuild { 26 | cmake { 27 | path "CMakeLists.txt" 28 | } 29 | } 30 | } 31 | 32 | dependencies { 33 | compile fileTree(dir: 'libs', include: ['*.jar']) 34 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 35 | exclude group: 'com.android.support', module: 'support-annotations' 36 | }) 37 | compile 'com.android.support:appcompat-v7:25.3.1' 38 | compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7' 39 | testCompile 'junit:junit:4.12' 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/java/com/boring/duanqifeng/tku/Cuotiji.java: -------------------------------------------------------------------------------- 1 | package com.boring.duanqifeng.tku; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | import java.io.BufferedReader; 8 | import java.io.FileInputStream; 9 | import java.io.IOException; 10 | import java.io.InputStreamReader; 11 | 12 | public class Cuotiji extends AppCompatActivity { 13 | 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | super.onCreate(savedInstanceState); 17 | setContentView(R.layout.activity_cuotiji); 18 | 19 | TextView textView = (TextView) findViewById(R.id.ctTextView); 20 | 21 | try { 22 | final FileInputStream fileInputStream = openFileInput("错题集.txt"); 23 | final InputStreamReader ctinputStreamReader = new InputStreamReader(fileInputStream); 24 | BufferedReader ctbufferedReader = new BufferedReader(ctinputStreamReader); 25 | 26 | String line="",line1=""; 27 | textView.setText(""); 28 | while((line = ctbufferedReader.readLine()) != null){ 29 | line1 = line1 + line +"\n"; 30 | textView.setText(line1); 31 | } 32 | 33 | 34 | } catch (IOException e) { 35 | e.printStackTrace(); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/boring/duanqifeng/tku/Mima.java: -------------------------------------------------------------------------------- 1 | package com.boring.duanqifeng.tku; 2 | 3 | import android.content.Intent; 4 | import android.content.SharedPreferences; 5 | import android.support.v7.app.AppCompatActivity; 6 | import android.os.Bundle; 7 | import android.view.View; 8 | import android.widget.Button; 9 | import android.widget.EditText; 10 | import android.widget.Toast; 11 | 12 | public class Mima extends AppCompatActivity { 13 | 14 | 15 | 16 | 17 | 18 | @Override 19 | protected void onCreate(Bundle savedInstanceState) { 20 | super.onCreate(savedInstanceState); 21 | setContentView(R.layout.activity_mima); 22 | 23 | final EditText mima = (EditText)findViewById(R.id.editMima); 24 | final Button signIn = (Button)findViewById(R.id.signin); 25 | 26 | SharedPreferences sharedPreferences = getSharedPreferences("Denglu",MODE_PRIVATE); 27 | final SharedPreferences.Editor editor = sharedPreferences.edit(); 28 | 29 | signIn.setOnClickListener(new View.OnClickListener() { 30 | @Override 31 | public void onClick(View v) { 32 | if (mima.getText().toString().equals("SCUGFS")||mima.getText().toString().equals("段其沣")){ 33 | startActivity(new Intent(Mima.this,Leibie.class)); 34 | //以后非第一次登录 35 | editor.putBoolean("isFirstIn", false); 36 | editor.apply();//提交修改 37 | finish(); 38 | }else{ 39 | Toast.makeText(Mima.this,"密码错误",Toast.LENGTH_SHORT).show(); 40 | mima.setText(""); 41 | } 42 | } 43 | }); 44 | } 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_neiwu.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |