Skip to content

Android 11 Not Working #4

Open
Open

Description

@Hitskalkani

In Android 11 (Api level 29 or 30) Not Working
Caused by: java.lang.SecurityException: Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION

Activity

  1. fukemy commented on Oct 6, 2021

    @fukemy

    this lib is dead, let using https://github.com/HBiSoft/HBRecorder

  2. hemandroid commented on Jun 20, 2022

    @hemandroid

    @Hitskalkani The error is telling you that you need to run the media project API as a Foreground service. Moreover, I have tested the code as it was working on Android 12 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions