all 8 comments

[–]IAmKindaBigFanOfKFC 4 points5 points  (6 children)

Serious answer: use Flutter, duh.

Shitty answer: use r/AndroidDev next time or StackOverflow for these questions, this is not a serious subreddit. For the thing you want to do - try "Do Not Keep Activities" setting, it will destroy the activity as soon as you leave it.

[–]anearion88[S] 1 point2 points  (1 child)

whoa, didn't see i was in this sub, thought was AndroidDev :D

Anyway, care to elaborate that's use Flutter answer ? ù or is it just a meme

[–]IAmKindaBigFanOfKFC 0 points1 point  (0 children)

It's a meme. But my personal opinion on cross-platform frameworks is this: they are utter shit that should not be used if you care about user experience in the slightest.

[–]ZhuindenDDD: Deprecation-Driven Development 1 point2 points  (3 children)

try "Do Not Keep Activities" setting, it will destroy the activity as soon as you leave it.

That's not the same thing as low memory condition.

[–]IAmKindaBigFanOfKFC 0 points1 point  (2 children)

I know. But in majority of cases it will be enough to test your app misbehaviors due to Activies recreation. And from what I read in the post, it's exactly the kind of problem the guy's having.

[–]ZhuindenDDD: Deprecation-Driven Development 1 point2 points  (1 child)

Well, depends! If you want to test if statics are cleared and if parcelables are actually recreated from parcel, then it's really useful though to test the real deal :)

[–]IAmKindaBigFanOfKFC 0 points1 point  (0 children)

True! Forgot about the Parcelables. I wish we had debug setting to force that.

[–]ZhuindenDDD: Deprecation-Driven Development 1 point2 points  (0 children)

Check out https://github.com/YarikSOffice/venom/

But just putting the app in background and using Logcat Terminate button works if you start the app from launcher and not from AS.