title: Android MediaRecorder to record a Surface (not Camera)
body: <p>I'm looking at the class <a href="http://developer.android.com/reference/android/media/MediaRecorder.html" rel="noreferrer">MediaRecorder</a> of the Android SDK, and I was wondering if it can be used to record a video made from a Surface.
  Example: I want to record what I display on my surface (a video game?) into a file. 
  As I said in the title: I'm not looking to record anything from the camera.</p>
  
  <p>I think it is possible by overriding most of the class, but I'd very much like some ideas...
  Beside, I'm not sure how the Camera class is used in MediaRecorder, and what I should get from my Surface to replace it.</p>
  
  <p>Thank you for your interest!</p>
  
  <p>PS: I'm looking at the native code used my MediaRecorder to have some clue, maybe it will inspire someone else:
  <a href="http://www.netmite.com/android/mydroid/frameworks/base/media/jni/" rel="noreferrer">http://www.netmite.com/android/mydroid/frameworks/base/media/jni/</a></p>