Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to terminate app tasks #123

Open
Vosjedev opened this issue Dec 4, 2023 · 2 comments
Open

Ability to terminate app tasks #123

Vosjedev opened this issue Dec 4, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Vosjedev
Copy link

Vosjedev commented Dec 4, 2023

Hi!
I am using smart dock on both my tablet and my phone, but I am missing something.
I would like a close button to close apps (as if I swiped one up in the recent apps menu). I guess this would only work with root, but for me this is not a problem.
This removes the need of the recent apps button/menu (and its non-mouse friendly way of using it) completely.

@axel358
Copy link
Owner

axel358 commented Dec 4, 2023

@Vosjedev It's a known limitation. There's no public API to terminate app tasks and there isn't a command either. Both am force-stop and am stack remove commands terminate apps without calling onDestroy so apps don't get a chance to clean up wich might result in data loss

@Vosjedev
Copy link
Author

Vosjedev commented Dec 4, 2023

Then simulate the user pressing the recent apps button and swiping it away via the accessability service as if the user just did it... Is there really no option to call the same things as the recent apps menu? That would be really bad android design (although that would not surprise me)...

@axel358 axel358 added the enhancement New feature or request label Feb 22, 2024
@axel358 axel358 changed the title app close button Ability to terminate app tasks Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants