Closed KuboCh closed 4 years ago
You don't need any specific Intent, Just run a default start for MainActivity and activate in app settings - "Auto start/stop streaming". Keep in mind Permissions request dialog!
Yeah but default intent for MainActivity will bring app in foreground, which i don't want, I have activated settings "Auto start/stop streaming", but it doesn't start streaming when the app is in background, I don't getting permissions request dialog on android 6.0.1, btw can it be granted one time for all? On android 10 it shows every time the stream is starting.
Before Android 10 there was an option "Never ask again". On 10+ there is no. In any case on any Android version you need some Activity to request a permission (even if it will be approved automatically). This mean app has to be in foreground to that. So no auto start on background.
I see, last question would you consider creating library for streaming from your app? For other apps to implement streaming feature.
Noop
Hi, can you make an intent that will start ScreenStream application and also start the streaming of screen on the background from another app?