OSDN Git Service

Add more code samples to the online docs.
authorScott Main <smain@google.com>
Mon, 24 Aug 2009 21:45:00 +0000 (14:45 -0700)
committerScott Main <smain@google.com>
Mon, 24 Aug 2009 21:45:00 +0000 (14:45 -0700)
Add build rules to include the development samples in the droiddoc build process.
Add all the sample screenshots to a new samples/images/ directory
Revise the samples homepage to include links to new samples

Android.mk
docs/html/guide/guide_toc.cs
docs/html/guide/samples/images/HomeSample.png [new file with mode: 0644]
docs/html/guide/samples/images/JetBoy.png [new file with mode: 0644]
docs/html/guide/samples/images/Snake.png [new file with mode: 0644]
docs/html/guide/samples/images/SoftKeyboard.png [new file with mode: 0644]
docs/html/guide/samples/images/sample_lunarlander.png [new file with mode: 0644]
docs/html/guide/samples/images/sample_note.png [new file with mode: 0644]
docs/html/guide/samples/images/sample_notepad.png [new file with mode: 0644]
docs/html/guide/samples/index.jd

index 5233f72..fd03c6d 100644 (file)
@@ -332,7 +332,7 @@ framework_docs_LOCAL_DROIDDOC_OPTIONS := \
     -since ./frameworks/base/api/1.xml 1 \
     -since ./frameworks/base/api/2.xml 2 \
     -since ./frameworks/base/api/3.xml 3 \
-    -since ./frameworks/base/api/current.xml Donut \
+    -since ./frameworks/base/api/4.xml 4 \
                -error 1 -error 2 -warning 3 -error 4 -error 6 -error 8 \
                -overview $(LOCAL_PATH)/core/java/overview.html
 
@@ -344,10 +344,18 @@ web_docs_sample_code_flags := \
                -hdf android.hasSamples 1 \
                -samplecode $(sample_dir)/ApiDemos \
                            guide/samples/ApiDemos "API Demos" \
+               -samplecode $(sample_dir)/Home \
+                           guide/samples/Home "Home" \
+               -samplecode $(sample_dir)/JetBoy \
+                           guide/samples/JetBoy "JetBoy" \
                -samplecode $(sample_dir)/LunarLander \
                            guide/samples/LunarLander "Lunar Lander" \
                -samplecode $(sample_dir)/NotePad \
-                           guide/samples/NotePad "Note Pad"
+                           guide/samples/NotePad "Note Pad" \
+               -samplecode $(sample_dir)/Snake \
+                           guide/samples/Snake "Snake" \
+               -samplecode $(sample_dir)/SoftKeyboard \
+                           guide/samples/SoftKeyboard "Soft Keyboard"
 
 ## SDK version identifiers used in the published docs
   # major[.minor] version for current SDK. (full releases only)
index 0b33739..459ad37 100644 (file)
           <li><a href="<?cs var:toroot ?>guide/samples/ApiDemos/index.html">
                 <span class="en">API Demos</span>
               </a></li>
+          <li><a href="<?cs var:toroot ?>guide/samples/Home/index.html">
+                <span class="en">Home</span>
+              </a></li>
+          <li><a href="<?cs var:toroot ?>guide/samples/JetBoy/index.html">
+                <span class="en">JetBoy</span>
+              </a></li>
           <li><a href="<?cs var:toroot ?>guide/samples/LunarLander/index.html">
                 <span class="en">Lunar Lander</span>
               </a></li>
           <li><a href="<?cs var:toroot ?>guide/samples/NotePad/index.html">
-                <span class="en">NotePad</span>
+                <span class="en">Note Pad</span>
+              </a></li>
+          <li><a href="<?cs var:toroot ?>guide/samples/Snake/index.html">
+                <span class="en">Snake</span>
+              </a></li>
+          <li><a href="<?cs var:toroot ?>guide/samples/SoftKeyboard/index.html">
+                <span class="en">Soft Keyboard</span>
               </a></li>
         </ul>
       </li>
     <?cs /if ?>
     </ul>
   </li>
+  
 
   <li>
     <h2><span class="en">Appendix</span>
diff --git a/docs/html/guide/samples/images/HomeSample.png b/docs/html/guide/samples/images/HomeSample.png
new file mode 100644 (file)
index 0000000..990bebb
Binary files /dev/null and b/docs/html/guide/samples/images/HomeSample.png differ
diff --git a/docs/html/guide/samples/images/JetBoy.png b/docs/html/guide/samples/images/JetBoy.png
new file mode 100644 (file)
index 0000000..3da0448
Binary files /dev/null and b/docs/html/guide/samples/images/JetBoy.png differ
diff --git a/docs/html/guide/samples/images/Snake.png b/docs/html/guide/samples/images/Snake.png
new file mode 100644 (file)
index 0000000..c5211d8
Binary files /dev/null and b/docs/html/guide/samples/images/Snake.png differ
diff --git a/docs/html/guide/samples/images/SoftKeyboard.png b/docs/html/guide/samples/images/SoftKeyboard.png
new file mode 100644 (file)
index 0000000..8a4ec63
Binary files /dev/null and b/docs/html/guide/samples/images/SoftKeyboard.png differ
diff --git a/docs/html/guide/samples/images/sample_lunarlander.png b/docs/html/guide/samples/images/sample_lunarlander.png
new file mode 100644 (file)
index 0000000..a2ff75a
Binary files /dev/null and b/docs/html/guide/samples/images/sample_lunarlander.png differ
diff --git a/docs/html/guide/samples/images/sample_note.png b/docs/html/guide/samples/images/sample_note.png
new file mode 100644 (file)
index 0000000..8fc9dcc
Binary files /dev/null and b/docs/html/guide/samples/images/sample_note.png differ
diff --git a/docs/html/guide/samples/images/sample_notepad.png b/docs/html/guide/samples/images/sample_notepad.png
new file mode 100644 (file)
index 0000000..46f2211
Binary files /dev/null and b/docs/html/guide/samples/images/sample_notepad.png differ
index 365284d..d8bbc41 100644 (file)
@@ -15,11 +15,28 @@ in the SDK. You can find the sample applications for each platform version in th
 <p>You can easily add these applications as projects in your development environment, so that you 
 can modify them and watch them execute. </p>
 <dl>
+
  <dt><a href="ApiDemos/index.html">API Demos</a></dt>
-  <dd>A variety of small applications that demonstrate simple views and widgets.</dd>
+  <dd>A variety of small applications that demonstrate an extensive collection of framework topics.</dd>
+  
+ <dt><a href="Home/index.html">Home</a></dt>
+  <dd>An application for saving notes. Similar (but not identical) to the 
+    <a href="{@docRoot}guide/tutorials/notepad/index.html">Notepad tutorial</a>.</dd>
+  
+ <dt><a href="JetBoy/index.html">JetBoy</a></dt>
+  <dd>JetBoy is a game that demonstrates the SONiVOX JET interactive music technology, with {@link android.media.JetPlayer}.</dd>
+    
  <dt><a href="LunarLander/index.html">Lunar Lander</a></dt>
   <dd>A classic Lunar Lander game.</dd>
+  
  <dt><a href="NotePad/index.html">Note Pad</a></dt>
   <dd>An application for saving notes. Similar (but not identical) to the 
     <a href="{@docRoot}guide/tutorials/notepad/index.html">Notepad tutorial</a>.</dd>
+  
+ <dt><a href="Snake/index.html">Snake</a></dt>
+  <dd>An implementation of the classic game "Snake."</dd>
+  
+ <dt><a href="SoftKeyboard/index.html">Soft Keyboard</a></dt>
+  <dd>An example of writing an input method for a software keyboard.</dd>
+    
 </dl>