title: How to get InputStream from ImageReader android
body: <p>I was looking at this class : <a href="https://developer.android.com/reference/android/media/ImageReader.html" rel="nofollow">https://developer.android.com/reference/android/media/ImageReader.html</a></p>
  
  <p>What I want is to get an InputStream from the ImageReader class and get the image data which is being rendering into the current surface. Current Surface means the currently displaying android screen.
  I looked at an example inside the AOSP code but it was really tough to understand.
  Please it would be really helpful if someone provides me with a nice example of ImageReader class.</p>