Add more code samples to the online docs.
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
12
Android.mk
@ -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)
|
||||
|
@ -387,17 +387,30 @@
|
||||
<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>
|
||||
|
BIN
docs/html/guide/samples/images/HomeSample.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
docs/html/guide/samples/images/JetBoy.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
docs/html/guide/samples/images/Snake.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
docs/html/guide/samples/images/SoftKeyboard.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
docs/html/guide/samples/images/sample_lunarlander.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
docs/html/guide/samples/images/sample_note.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
docs/html/guide/samples/images/sample_notepad.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
@ -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>
|
||||
|