一个简单的程序用来测试Android应用状态保存和恢复

网友投稿 638 2022-10-29

一个简单的程序用来测试Android应用状态保存和恢复

一个简单的程序用来测试Android应用状态保存和恢复

Process Killer

A simple app for testing application state saving and restoring.

Contents

SetupCompatibilityDescriptionLicense

Setup

Clone the repo

git clone https://github.com/livefront/process-killer-android.git

and build in Android Studio.

Setup for release signing

If you need to create a signed APK for release to the Google Play Store, you will need to create a file called upload-keystore.properties at the root of the project containing the various properties needed to sign the app. The file will follow the format:

keyAlias = Enter-key-alias-herekeyPassword = Enter-key-password-herestorePassword = Enter-key-store-password-here

The final app signing is controlled through Google Play. The signing key stored in the repo is just the upload key, not the actual release key. If the alias or any passwords used above are lost, a new upload key can be created and used as long as it's updated on the Google Play Console.

Compatibility

Minimum SDK: 21Target SDK: 28Device Types: Phone & TabletDevices Supported: AllOrientations Supported: Portrait and landscapeRTL Support: Yes

Description

The purpose of the app is to allow for testing how well apps restore their state after the system kills their host process. Applications with recent activity are displayed in a list; clicking on any of those items kills their host process (if they are currently running) in the same way the system would when reclaiming memory. The app can then be restarted from the link in the Snackbar or navigated to via a Launcher or Recents.

Note that running processes will only be killed if the system deems the action "safe". See the documentation for more details.

License

Copyright 2016 LivefrontLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Python好坑爹的一个点--print()
下一篇:在html,js,xml中使用Ajax
相关文章

 发表评论

暂时没有评论,来抢沙发吧~