├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── raw │ │ │ │ ├── paycomp.mp3 │ │ │ │ ├── payrecv.mp3 │ │ │ │ ├── wx_lack.mp3 │ │ │ │ ├── zfb_lack.mp3 │ │ │ │ └── networkerror.mp3 │ │ │ ├── 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 │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── layout │ │ │ │ ├── activity_log.xml │ │ │ │ ├── sample_log_item_comp.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── content_main.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── java │ │ │ └── xyz │ │ │ │ └── loadnl │ │ │ │ └── payrecord │ │ │ │ ├── IMessageHander.java │ │ │ │ ├── data │ │ │ │ ├── LogItem.java │ │ │ │ ├── AppConst.java │ │ │ │ └── OrderData.java │ │ │ │ ├── BatteryReceiver.java │ │ │ │ ├── LogActivity.java │ │ │ │ ├── util │ │ │ │ ├── DBHelper.java │ │ │ │ ├── AppUtil.java │ │ │ │ └── DBManager.java │ │ │ │ ├── MainService.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── NotificationMonitorService.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── xyz │ │ │ └── loadnl │ │ │ └── payrecord │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── xyz │ │ └── loadnl │ │ └── payrecord │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── .gitignore ├── settings.gradle ├── local.properties ├── gradle.properties ├── PayRecord.iml ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /app/build/ 2 | /gradle/ -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/raw/paycomp.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/raw/paycomp.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/payrecv.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/raw/payrecv.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/wx_lack.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/raw/wx_lack.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/zfb_lack.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/raw/zfb_lack.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/networkerror.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/raw/networkerror.mp3 -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loadnl/payrecord/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/loadnl/payrecord/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/loadnl/payrecord/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/loadnl/payrecord/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/loadnl/payrecord/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/java/xyz/loadnl/payrecord/IMessageHander.java: -------------------------------------------------------------------------------- 1 | package xyz.loadnl.payrecord; 2 | 3 | import android.os.Message; 4 | 5 | 6 | 7 | public interface IMessageHander { 8 | void handMessage(Message msg); 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/xyz/loadnl/payrecord/data/LogItem.java: -------------------------------------------------------------------------------- 1 | package xyz.loadnl.payrecord.data; 2 | 3 | 4 | 5 | public class LogItem { 6 | public int id; 7 | public String log_value; 8 | public int log_type; 9 | public String create_dt; 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file should *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/Users/loadnl/Library/Android/sdk 11 | -------------------------------------------------------------------------------- /app/src/test/java/xyz/loadnl/payrecord/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package xyz.loadnl.payrecord; 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() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/java/xyz/loadnl/payrecord/data/AppConst.java: -------------------------------------------------------------------------------- 1 | package xyz.loadnl.payrecord.data; 2 | 3 | /** 4 | * Create by loadnl 5 | * Date: 2019/4/1 6 | * Function: 7 | **/ 8 | public class AppConst { 9 | 10 | public static boolean PlaySounds = true; 11 | public static final String CHANNEL_Front = "Front"; 12 | public static final String CHANNEL_ID = "ID"; 13 | public static final String IntentAction = "xyz.loadnl.Notification"; 14 | 15 | public static int Battery=0; 16 | public static int DetaTime = 0;//手机和服务器的时间差 17 | 18 | public static final String KeyMute = "mute"; 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/java/xyz/loadnl/payrecord/data/OrderData.java: -------------------------------------------------------------------------------- 1 | package xyz.loadnl.payrecord.data; 2 | 3 | 4 | 5 | public class OrderData { 6 | public String payType; 7 | public String username; 8 | public String money; 9 | public String sign; 10 | public String ranStr; 11 | public int dianYuan; 12 | public long time; 13 | public OrderData(final String payType, final String money, final String username, boolean dianYuan){ 14 | this.payType = payType; 15 | this.username = username; 16 | this.money = money; 17 | this.dianYuan = dianYuan?1:0; 18 | time = System.currentTimeMillis()/1000 - AppConst.DetaTime; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |