We developed an app which is running in android payment device(PAX). This device having low memory (1 GB). In this app we are calling other app using ActivityResultLauncher and getting the result to store in our DB.
Out of 1000 cases 1 or 2 times our app is got killed while waiting for result and our app in background.
Here my doubts: 1)Is it possible to avoid that, my app got killed by Android 2)Is it possible to maintain the same state after app got killed, so when our app come to foreground we can capture the activity result..
We are using android:largeHeap="true"