Problem With Taking Screenshots With The Media Projection Android Studio
I have this code to make screenshots. In the virtual device of android studio this code works perfectly, but in my own device Samsung(with android 8.0) when I do the apk installer
Solution 1:
I don't know if you've already solved your problem, but here's my solution: The method receives 4 parameters and the last one is the number of photos
enter code here
ImageReader.newInstance(width: Int, height: Int, format: Int, maxImages: Int)
If you look good you are sending it in the last parameter the number of photos 2
enter code here
ImageReader.newInstance(mWidth, mHeight, PixelFormat.RGBA_8888, 2);
Post a Comment for "Problem With Taking Screenshots With The Media Projection Android Studio"