title: Under Android NDK, can a native window be created without Java calls to retrieve the surface?
body: <p>I am trying to develop an android app fully in native code using C++. The Android NDK api's are using a Java object. For example I saw the method:</p>
  
  <pre><code>int32_t ANativeWindow_getHeight(ANativeWindow* window);
  </code></pre>
  
  <p>But to create an <code>ANativeWindow</code> I need a Java Surface Object.</p>
  
  <pre><code>ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
  </code></pre>
  
  <p>Is there any other way to get the details without using any java objects?</p>
  
  <p>I do not want to use a Java callback.</p>