mtsahakis / MediaProjectionDemo

One Activity sample app of using Android Lollipop MediaProjection API to capture device screenshots
Other
210 stars 76 forks source link

onImageAvailable not called #2

Closed Charlesjean closed 9 years ago

Charlesjean commented 9 years ago

I find this method is never called on my Nexus5, my os is 5.0

mtsahakis commented 9 years ago

I use Nexus 7 and it does call onImageAvailable but I can't really say whats going on your device. Have you tried on an alternative device or 5.0+ emulator?

mtsahakis commented 9 years ago

Followed your recommendation in SOF http://stackoverflow.com/questions/26673127/android-imagereader-acquirelatestimage-returns-invalid-jpg and updated the project accordingly. Many thanks!