V vbigdan Member Licensed User Longtime User Oct 6, 2017 #1 Hi guys, I need to restart a different app from my app. Is it possible (and if so how) to REMOVE an app from the recents list (like you would be swiping it away)? You can view the recents by this: https://www.b4x.com/android/forum/threads/simulate-long-press-home-button-to-open-recent-apps.31066/ ... but can you "close all" or remove one in particular? The other app which I talk to sometimes needs to be completely closed and re-opened to function properly. Thanks!
Hi guys, I need to restart a different app from my app. Is it possible (and if so how) to REMOVE an app from the recents list (like you would be swiping it away)? You can view the recents by this: https://www.b4x.com/android/forum/threads/simulate-long-press-home-button-to-open-recent-apps.31066/ ... but can you "close all" or remove one in particular? The other app which I talk to sometimes needs to be completely closed and re-opened to function properly. Thanks!
tigrot Well-Known Member Licensed User Longtime User Oct 6, 2017 #2 I think it's better to correct wrong behaviour of your app. This kind of issues can bring only additional problems going on. Upvote 0
I think it's better to correct wrong behaviour of your app. This kind of issues can bring only additional problems going on.
V vbigdan Member Licensed User Longtime User Oct 6, 2017 #3 The app that's misbehaving is a third-party app. I would love to fix it! but alas. I open it to talk via API to it. Upvote 0
The app that's misbehaving is a third-party app. I would love to fix it! but alas. I open it to talk via API to it.
V vbigdan Member Licensed User Longtime User Oct 12, 2017 #4 Worked it out: (using OS library) OS.killBackgroundProcesses("com.other-application-name") Upvote 0