title: How to use ScreenCap.cpp on my application?
body: <p>Android Platform has an utility class that's used to take android screenshot . I copied "<a href="https://github.com/android/platform_frameworks_base/blob/master/cmds/screencap/screencap.cpp" rel="nofollow">ScreenCap.cpp</a>" in to JNI folder then build via NDK but failed. The NDK compiler didn't find needed libraries:</p>
  
  <pre><code>#include &lt;binder/IMemory.h&gt;
  #include &lt;gui/SurfaceComposerClient.h&gt;
  
  #include &lt;SkImageEncoder.h&gt;
  #include &lt;SkBitmap.h&gt;
  #include &lt;SkData.h&gt;
  #include &lt;SkStream.h&gt;
  </code></pre>
  
  <p>Here is error log:</p>
  
  <pre><code>jni/ScreenCap.cpp:28:28: fatal error: SkImageEncoder.h: No such file or directory
  </code></pre>
  
  <p>compilation terminated.</p>
  
  <p>Please tell me how to fix this.</p>
  
  <p>BTW, Is there any solution to capture entire  android screen programmatically? I need to capture it at least 10 times per second.</p>
  
  <p>Thanks.</p>