From 2f402b2c44268590b4ab22ea19902f6e8420b4be Mon Sep 17 00:00:00 2001 From: AWeiLoveAndroid Date: Fri, 14 Jul 2023 03:18:22 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=BB=8F=E7=90=86=E7=A5=9E?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=EF=BC=8C=E8=BF=99=E6=AE=B5=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=BF=85=E9=A1=BB=E4=B8=8A=E6=A6=9C=E3=80=82=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=86=85=E5=AD=98=E7=A5=9E=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: AWeiLoveAndroid --- android/SettingActivity.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 android/SettingActivity.java diff --git a/android/SettingActivity.java b/android/SettingActivity.java new file mode 100644 index 0000000..9dca7c8 --- /dev/null +++ b/android/SettingActivity.java @@ -0,0 +1,20 @@ +public class SettingActivity extends androidx.appcompat.app.AppCompatActivity { + @Override + protected void onCreate(@androidx.annotation.Nullable android.os.Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + clearMemory(); + + } + + // 清理垃圾 + private void clearMemory() { + try { + // 经理说加一个延时效果,时间5秒,让甲方给钱后期便于优化 + Thread.sleep(5000); + android.widget.Toast.makeText(SettingActivity.this, "清理完成!", Toast.LENGTH_SHORT).show(); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file -- Gitee