Floating window over apps in jetpack compose foreground service
My project :
MyActivity.kt (Main activity) -> main activity that has two buttons to start and stop the service.
App.kt (Notfication Channel application) -> class extends Application() that create notification channel.
Foreground.kt (foreground Service) -> extends Service()
class Foreground : Service() {
private lateinit var windowManager:WindowManager
private lateinit var floatingView : ComposeView
@SuppressLint("ForegroundServiceType")
override fun onStartCommand(intent:...