From a1268442725b9350a19b6fa93af5dd5f364709ef Mon Sep 17 00:00:00 2001 From: m2049r <30435443+m2049r@users.noreply.github.com> Date: Mon, 21 Aug 2017 15:58:22 +0200 Subject: [PATCH] start WalletService as foreground service preventing it from being killed by the system --- app/src/main/AndroidManifest.xml | 1 + .../xmrwallet/service/WalletService.java | 24 ++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 439bd6e..0d7245c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,6 +19,7 @@ android:name=".WalletActivity" android:configChanges="orientation|keyboardHidden" android:label="@string/wallet_activity_name" + android:launchMode="singleTask" android:screenOrientation="portrait" />