Added shutdown handler

pull/214/head
M66B 2 years ago
parent 37dea4eb32
commit 0dd29abd06

@ -68,6 +68,16 @@ public class ApplicationEx extends Application
@Override @Override
protected void attachBaseContext(Context base) { protected void attachBaseContext(Context base) {
TinyLogConfigurationLoader.setup(base); TinyLogConfigurationLoader.setup(base);
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
Log.i("App shutdown" +
" version=" + BuildConfig.VERSION_NAME + BuildConfig.REVISION +
" process=" + android.os.Process.myPid());
}
});
super.attachBaseContext(getLocalizedContext(base)); super.attachBaseContext(getLocalizedContext(base));
} }

Loading…
Cancel
Save