OSDN Git Service

cherrypick Change-Id: I9f4688a7eb3dfc22f423c114befc665f7f83f168
authorScott Main <smain@google.com>
Thu, 21 Jul 2011 18:16:40 +0000 (11:16 -0700)
committerScott Main <smain@google.com>
Wed, 27 Jul 2011 20:35:04 +0000 (13:35 -0700)
docs: add JNI Tips doc to the dev guide sidenav

Change-Id: I7522ba8bcad96d5c424f7e894e62ceb700df3027

docs/html/guide/guide_toc.cs
docs/html/guide/practices/design/jni.jd

index fabd43e..a647cd3 100644 (file)
       <li><a href="<?cs var:toroot ?>guide/practices/design/accessibility.html">
             <span class="en">Designing for Accessibility</span>
           </a></li>
-      <li><a href="<?cs var:toroot ?>guide/practices/design/performance.html">
+      <li class="toggle-list">
+        <div><a href="<?cs var:toroot ?>guide/practices/design/performance.html">
             <span class="en">Designing for Performance</span>
-          </a></li>
+          </a> <span class="new-child">new!</span></div>
+        <ul>
+          <li><a href="<?cs var:toroot ?>guide/practices/design/jni.html">
+                <span class="en">JNI Tips</span>
+              </a> <span class="new">new!</span></li>
+        </ul>
+      </li>
       <li><a href="<?cs var:toroot ?>guide/practices/design/responsiveness.html">
             <span class="en">Designing for Responsiveness</span>
           </a></li>
index 39624f5..1d0e26e 100644 (file)
@@ -6,7 +6,6 @@ page.title=JNI Tips
 
 <h2>In this document</h2>
 <ol>
-  <li><a href="#what">What is JNI?</a></li>
   <li><a href="#JavaVM_and_JNIEnv">JavaVM and JNIEnv</a></li>
   <li><a href="#threads">Threads</a></li>
   <li><a href="#jclass_jmethodID_and_jfieldID">jclass, jmethodID, and jfieldID</a></li>
@@ -27,9 +26,6 @@ page.title=JNI Tips
 </div>
 </div>
 
-<a name="what_is_jni" id="what_is_jni"></a>
-<h2>What is JNI?</h2>
-
 <p>JNI is the Java Native Interface.  It defines a way for code written in the
 Java programming language to interact with native
 code, e.g. functions written in C/C++.  It's VM-neutral, has support for loading code from