From 87cf8e9de7d651cbda297e718f957822b63108b1 Mon Sep 17 00:00:00 2001 From: HearSilent Date: Fri, 5 Jun 2015 18:11:42 +0800 Subject: [PATCH 1/5] Add service to auto login --- KUASWifiAutoLogin/.gitignore | 1 + KUASWifiAutoLogin/.idea/.name | 2 +- KUASWifiAutoLogin/.idea/compiler.xml | 3 +- KUASWifiAutoLogin/.idea/encodings.xml | 7 +- KUASWifiAutoLogin/.idea/gradle.xml | 2 +- .../.idea/libraries/appcompat_v7_21_0_3.xml | 10 - .../.idea/libraries/jsoup_1_8_1.xml | 11 - .../.idea/libraries/library_2_4_0.xml | 11 - .../libraries/support_annotations_21_0_3.xml | 11 - .../.idea/libraries/support_v4_21_0_3.xml | 13 - KUASWifiAutoLogin/.idea/misc.xml | 56 +- KUASWifiAutoLogin/.idea/modules.xml | 5 +- KUASWifiAutoLogin/.idea/runConfigurations.xml | 12 + .../.idea/scopes/scope_settings.xml | 5 - KUASWifiAutoLogin/.idea/vcs.xml | 3 +- KUASWifiAutoLogin/.idea/workspace.xml | 1947 +++++++++++------ ...oLogin.iml => KUAS-Wifi-Auto-Login-v2.iml} | 4 +- KUASWifiAutoLogin/app/app.iml | 27 +- KUASWifiAutoLogin/app/build.gradle | 17 +- .../app/src/main/AndroidManifest.xml | 33 +- .../edu/kuas/loginservice/LoginService.java | 188 -- .../tw/edu/kuas/loginservice/NetWatcher.java | 19 - .../tw/edu/kuas/network/NetworkStatus.java | 25 - .../edu/kuas/wifiautologin/AboutActivity.java | 84 + .../edu/kuas/wifiautologin/MainActivity.java | 145 ++ .../edu/kuas/wifiautologin/WifiAutoLogin.java | 400 ---- .../edu/kuas/wifiautologin/WifiReceiver.java | 75 + .../wifiautologin/callbacks/Constant.java | 14 + .../callbacks/GeneralCallback.java | 7 + .../kuas/wifiautologin/callbacks/Memory.java | 84 + .../kuas/wifiautologin/libs/LoginHelper.java | 244 +++ .../tw/edu/kuas/wifiautologin/libs/Utils.java | 38 + .../res/drawable-hdpi-v11/ic_stat_login.png | Bin 0 -> 569 bytes .../res/drawable-hdpi-v9/ic_stat_login.png | Bin 0 -> 576 bytes .../main/res/drawable-hdpi/ic_stat_login.png | Bin 0 -> 982 bytes .../res/drawable-mdpi-v11/ic_stat_login.png | Bin 0 -> 378 bytes .../res/drawable-mdpi-v9/ic_stat_login.png | Bin 0 -> 361 bytes .../main/res/drawable-mdpi/ic_stat_login.png | Bin 0 -> 643 bytes .../src/main/res/drawable-nodpi/ic_main.png | Bin 0 -> 6505 bytes .../res/drawable-xhdpi-v11/ic_stat_login.png | Bin 0 -> 795 bytes .../res/drawable-xhdpi-v9/ic_stat_login.png | Bin 0 -> 774 bytes .../main/res/drawable-xhdpi/ic_stat_login.png | Bin 0 -> 1348 bytes .../res/drawable-xxhdpi-v11/ic_stat_login.png | Bin 0 -> 1187 bytes .../res/drawable-xxhdpi-v9/ic_stat_login.png | Bin 0 -> 1255 bytes .../res/drawable-xxhdpi/ic_stat_login.png | Bin 0 -> 978 bytes .../app/src/main/res/drawable/button_blue.xml | 24 +- .../src/main/res/drawable/drawer_selector.xml | 5 - .../main/res/layout-land/activity_main.xml | 93 + .../src/main/res/layout/activity_about.xml | 7 + .../app/src/main/res/layout/activity_main.xml | 145 +- .../app/src/main/res/menu/main.xml | 11 + .../app/src/main/res/values-w820dp/dimens.xml | 8 +- .../src/main/res/values-zh-rTW/strings.xml | 34 + .../app/src/main/res/values/colors.xml | 13 +- .../app/src/main/res/values/dimens.xml | 3 +- .../app/src/main/res/values/strings.xml | 70 +- .../app/src/main/res/values/styles.xml | 12 +- KUASWifiAutoLogin/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 4 +- 59 files changed, 2352 insertions(+), 1582 deletions(-) delete mode 100644 KUASWifiAutoLogin/.idea/libraries/appcompat_v7_21_0_3.xml delete mode 100644 KUASWifiAutoLogin/.idea/libraries/jsoup_1_8_1.xml delete mode 100644 KUASWifiAutoLogin/.idea/libraries/library_2_4_0.xml delete mode 100644 KUASWifiAutoLogin/.idea/libraries/support_annotations_21_0_3.xml delete mode 100644 KUASWifiAutoLogin/.idea/libraries/support_v4_21_0_3.xml create mode 100644 KUASWifiAutoLogin/.idea/runConfigurations.xml delete mode 100644 KUASWifiAutoLogin/.idea/scopes/scope_settings.xml rename KUASWifiAutoLogin/{KUAS-WifiAutoLogin.iml => KUAS-Wifi-Auto-Login-v2.iml} (59%) delete mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/loginservice/LoginService.java delete mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/loginservice/NetWatcher.java delete mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/network/NetworkStatus.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/AboutActivity.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/MainActivity.java delete mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/WifiAutoLogin.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/WifiReceiver.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/callbacks/Constant.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/callbacks/GeneralCallback.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/callbacks/Memory.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/libs/LoginHelper.java create mode 100644 KUASWifiAutoLogin/app/src/main/java/tw/edu/kuas/wifiautologin/libs/Utils.java create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-hdpi-v11/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-hdpi-v9/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-hdpi/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-mdpi-v11/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-mdpi-v9/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-mdpi/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-nodpi/ic_main.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-xhdpi-v11/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-xhdpi-v9/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-xhdpi/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-xxhdpi-v11/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-xxhdpi-v9/ic_stat_login.png create mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable-xxhdpi/ic_stat_login.png delete mode 100644 KUASWifiAutoLogin/app/src/main/res/drawable/drawer_selector.xml create mode 100644 KUASWifiAutoLogin/app/src/main/res/layout-land/activity_main.xml create mode 100644 KUASWifiAutoLogin/app/src/main/res/layout/activity_about.xml create mode 100644 KUASWifiAutoLogin/app/src/main/res/menu/main.xml create mode 100644 KUASWifiAutoLogin/app/src/main/res/values-zh-rTW/strings.xml diff --git a/KUASWifiAutoLogin/.gitignore b/KUASWifiAutoLogin/.gitignore index afbdab3..9c4de58 100644 --- a/KUASWifiAutoLogin/.gitignore +++ b/KUASWifiAutoLogin/.gitignore @@ -4,3 +4,4 @@ /.idea/libraries .DS_Store /build +/captures diff --git a/KUASWifiAutoLogin/.idea/.name b/KUASWifiAutoLogin/.idea/.name index 001881f..05d227d 100644 --- a/KUASWifiAutoLogin/.idea/.name +++ b/KUASWifiAutoLogin/.idea/.name @@ -1 +1 @@ -高應無線通 \ No newline at end of file +Wifi Auto Login \ No newline at end of file diff --git a/KUASWifiAutoLogin/.idea/compiler.xml b/KUASWifiAutoLogin/.idea/compiler.xml index 217af47..9a8b7e5 100644 --- a/KUASWifiAutoLogin/.idea/compiler.xml +++ b/KUASWifiAutoLogin/.idea/compiler.xml @@ -19,5 +19,4 @@ - - + \ No newline at end of file diff --git a/KUASWifiAutoLogin/.idea/encodings.xml b/KUASWifiAutoLogin/.idea/encodings.xml index e206d70..97626ba 100644 --- a/KUASWifiAutoLogin/.idea/encodings.xml +++ b/KUASWifiAutoLogin/.idea/encodings.xml @@ -1,5 +1,6 @@ - - - + + + + \ No newline at end of file diff --git a/KUASWifiAutoLogin/.idea/gradle.xml b/KUASWifiAutoLogin/.idea/gradle.xml index 5587054..2fe7d37 100644 --- a/KUASWifiAutoLogin/.idea/gradle.xml +++ b/KUASWifiAutoLogin/.idea/gradle.xml @@ -5,7 +5,7 @@