1

Copy the open-source Be Nice app's split screen functionality to fix Tasker

There is an open-source app called Be Nice that seems to have successfully implemented split screen support for modern Android devices. Perhaps Tasker could use it for inspiration on getting its Split Screen feature working again. Here's the source on GitHub: tkuenneth/BeNice: Split-screens on Android made easy

(Note: I'm not affiliated with Be Nice. I just ran into it on Reddit.)

2 replies

Correct me if I'm wrong, but doesn't that only work to launch the "Be Nice" app itself along with another app?

G

The Be Nice app is used to open any two apps in split-screen, optionally saving the selected applications as a shortcut. I'm not a Kotlin developer, but I think it does it through Intents, in the launchApp extension function, that's called from the overridden Activity.onResume. So, I imagine you could probably figure out how that intent was structured and do something similar in Tasker's code.

launchApp: https://github.com/tkuenneth/BeNice/blob/686d0bfaecfa608e3f4b9a1ab2d03d18bdc152ab/app/src/main/java/de/thomaskuenneth/benice/BeNiceActivity.kt#L81

Activity.onResume: https://github.com/tkuenneth/BeNice/blob/686d0bfaecfa608e3f4b9a1ab2d03d18bdc152ab/app/src/main/java/de/thomaskuenneth/benice/BeNiceActivity.kt#L35

Thank you! That's very helpful! Does that app also have the option to disable split screen mode so I can implement enabling and disabling split screen?

G

You're welcome, João.

I'm not sure what you mean by "disabling split screen." Can't someone just launch whatever app they wanted by itself to open it not in split screen?