Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b385508d authored by Scott Main's avatar Scott Main
Browse files

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
parent 8c937a17
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -332,7 +332,7 @@ framework_docs_LOCAL_DROIDDOC_OPTIONS := \
    -since ./frameworks/base/api/1.xml 1 \
    -since ./frameworks/base/api/1.xml 1 \
    -since ./frameworks/base/api/2.xml 2 \
    -since ./frameworks/base/api/2.xml 2 \
    -since ./frameworks/base/api/3.xml 3 \
    -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 \
		-error 1 -error 2 -warning 3 -error 4 -error 6 -error 8 \
		-overview $(LOCAL_PATH)/core/java/overview.html
		-overview $(LOCAL_PATH)/core/java/overview.html


@@ -344,10 +344,18 @@ web_docs_sample_code_flags := \
		-hdf android.hasSamples 1 \
		-hdf android.hasSamples 1 \
		-samplecode $(sample_dir)/ApiDemos \
		-samplecode $(sample_dir)/ApiDemos \
		            guide/samples/ApiDemos "API Demos" \
		            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 \
		-samplecode $(sample_dir)/LunarLander \
		            guide/samples/LunarLander "Lunar Lander" \
		            guide/samples/LunarLander "Lunar Lander" \
		-samplecode $(sample_dir)/NotePad \
		-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
## SDK version identifiers used in the published docs
  # major[.minor] version for current SDK. (full releases only)
  # major[.minor] version for current SDK. (full releases only)
+14 −1
Original line number Original line Diff line number Diff line
@@ -387,18 +387,31 @@
          <li><a href="<?cs var:toroot ?>guide/samples/ApiDemos/index.html">
          <li><a href="<?cs var:toroot ?>guide/samples/ApiDemos/index.html">
                <span class="en">API Demos</span>
                <span class="en">API Demos</span>
              </a></li>
              </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">
          <li><a href="<?cs var:toroot ?>guide/samples/LunarLander/index.html">
                <span class="en">Lunar Lander</span>
                <span class="en">Lunar Lander</span>
              </a></li>
              </a></li>
          <li><a href="<?cs var:toroot ?>guide/samples/NotePad/index.html">
          <li><a href="<?cs var:toroot ?>guide/samples/NotePad/index.html">
                <span class="en">Note Pad</span>
                <span class="en">Note Pad</span>
              </a></li>
              </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>
        </ul>
      </li>
      </li>
    <?cs /if ?>
    <?cs /if ?>
    </ul>
    </ul>
  </li>
  </li>
  
  

  <li>
  <li>
    <h2><span class="en">Appendix</span>
    <h2><span class="en">Appendix</span>
               <span class="de">Anhang</span>
               <span class="de">Anhang</span>
+43.4 KiB
Loading image diff...
+52.5 KiB
Loading image diff...
+5.32 KiB
Loading image diff...
Loading