Skip to content

Update dependencys & api level - #210

Open
mheinr wants to merge 8 commits into
abrenoch:masterfrom
mheinr:update-dependencys
Open

Update dependencys & api level#210
mheinr wants to merge 8 commits into
abrenoch:masterfrom
mheinr:update-dependencys

Conversation

@mheinr

@mheinr mheinr commented Dec 4, 2024

Copy link
Copy Markdown

No description provided.

@CommanderRedYT

Copy link
Copy Markdown

I get a small toast saying "Foreground Service Media Projection permission denied" when starting this on a chromecast 4K

@mheinr

mheinr commented Jan 1, 2025

Copy link
Copy Markdown
Author

I get a small toast saying "Foreground Service Media Projection permission denied" when starting this on a chromecast 4K

Does it run on Android14?

@CommanderRedYT

CommanderRedYT commented Jan 1, 2025

Copy link
Copy Markdown

I get a small toast saying "Foreground Service Media Projection permission denied" when starting this on a chromecast 4K

Does it run on Android14?

I believe it's running android 12 (thanks google)

@LL1r1k

LL1r1k commented Apr 5, 2025

Copy link
Copy Markdown

MainActivity.java:79
ActivityCompat.requestPermissions( this, new String[]{Manifest.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION}, FOREGROUND_SERVICE_MEDIA_PROJECTION_REQUEST_CODE );
Field requires API level 34 (current min is 31): android. Manifest. permission#FOREGROUND_SERVICE_MEDIA_PROJECTION

For SDK 31, maybe you need to just grant Manifest.permission.FOREGROUND_SERVICE. But can't stream video projection, only menus.

// Permission is not granted, request it
ActivityCompat.requestPermissions(
this,
new String[]{Manifest.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not supported in SDK 31

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants