Search code examples
androidandroid-mediaprojectionscreencastmediaprojectionmanager

Can we programmatically dismiss the screen cast message in android? When MediaProjection.getScreenCaptureIntent() is called?


Is it possible to programmatically dismiss the screen sharing prompt message that pops up when we call MediaProjection.getScreenCaptureIntent()?


Solution

  • No, ordinary apps cannot dismiss system dialogs, particularly those pertaining to permissions.