Android Question How to take a full screenshot via MediaProjection?

ArtemisPrime

Member
Licensed User
Hello everyone,

I'm trying to develop an app where I need to take a full screenshot of the screen. I've combed the search results and the consensus was that it was not possible as the android devs deemed full screenshots as a security flaw. Well not anymore, a quick google search showed that it is now possible to take a full screenshot in Android SDK24 via MediaProjection. Has anyone tried using this new feature with B4A yet? I'm going to try to tackle it but my coding expertise is not very strong and I would love some guidance/help.

Official Doc:
https://developer.android.com/reference/android/media/projection/MediaProjection.html

Sample Java Code:
https://github.com/googlesamples/android-ScreenCapture
 

ArtemisPrime

Member
Licensed User
Hi Moster67,

Thanks! I will take a look. Is it possible to grab a single frame from your library? I could then technically use that in place of a screenshot.

Would it be possible to take a look at your source? I would be happy to throw a few $$ your way for the screenshot ability.

Thanks!
 
Upvote 0
Top