doc change: Samples browsing first changes: Samples dir and file starters.

Change-Id: I6cc8c03bf4c2bcc771d4531619db5b3acd62601f
This commit is contained in:
Dirk Dougherty
2013-07-09 13:18:15 -07:00
parent b4f9628728
commit b6bc020d72
5 changed files with 193 additions and 94 deletions

View File

@ -469,100 +469,100 @@ sample_dir := development/samples
# the list here should match the list of samples included in the sdk samples package # the list here should match the list of samples included in the sdk samples package
# (see development/build/sdk.atree) # (see development/build/sdk.atree)
# remove htmlified samples for now -- samples are still available through the SDK # remove htmlified samples for now -- samples are still available through the SDK
# web_docs_sample_code_flags := \ web_docs_sample_code_flags := \
-hdf android.hasSamples 1 \ -hdf android.hasSamples 1 \
-samplecode $(sample_dir)/AccelerometerPlay \ -samplecode $(sample_dir)/AccelerometerPlay \
resources/samples/AccelerometerPlay "Accelerometer Play" \ samples/AccelerometerPlay "Accelerometer Play" \
-samplecode $(sample_dir)/ActionBarCompat \ -samplecode $(sample_dir)/ActionBarCompat \
resources/samples/ActionBarCompat "Action Bar Compatibility" \ samples/ActionBarCompat "Action Bar Compatibility"
-samplecode $(sample_dir)/AndroidBeamDemo \ # -samplecode $(sample_dir)/AndroidBeamDemo \
resources/samples/AndroidBeamDemo "Android Beam Demo" \ # samples/AndroidBeamDemo "Android Beam Demo" \
-samplecode $(sample_dir)/ApiDemos \ # -samplecode $(sample_dir)/ApiDemos \
resources/samples/ApiDemos "API Demos" \ # samples/ApiDemos "API Demos" \
-samplecode $(sample_dir)/Support4Demos \ # -samplecode $(sample_dir)/Support4Demos \
resources/samples/Support4Demos "API 4+ Support Demos" \ # samples/Support4Demos "API 4+ Support Demos" \
-samplecode $(sample_dir)/Support13Demos \ # -samplecode $(sample_dir)/Support13Demos \
resources/samples/Support13Demos "API 13+ Support Demos" \ # samples/Support13Demos "API 13+ Support Demos" \
-samplecode $(sample_dir)/BackupRestore \ # -samplecode $(sample_dir)/BackupRestore \
resources/samples/BackupRestore "Backup and Restore" \ # samples/BackupRestore "Backup and Restore" \
-samplecode $(sample_dir)/BluetoothChat \ # -samplecode $(sample_dir)/BluetoothChat \
resources/samples/BluetoothChat "Bluetooth Chat" \ # samples/BluetoothChat "Bluetooth Chat" \
-samplecode $(sample_dir)/BluetoothHDP \ # -samplecode $(sample_dir)/BluetoothHDP \
resources/samples/BluetoothHDP "Bluetooth HDP Demo" \ # samples/BluetoothHDP "Bluetooth HDP Demo" \
-samplecode $(sample_dir)/BusinessCard \ # -samplecode $(sample_dir)/BusinessCard \
resources/samples/BusinessCard "Business Card" \ # samples/BusinessCard "Business Card" \
-samplecode $(sample_dir)/ContactManager \ # -samplecode $(sample_dir)/ContactManager \
resources/samples/ContactManager "Contact Manager" \ # samples/ContactManager "Contact Manager" \
-samplecode $(sample_dir)/CubeLiveWallpaper \ # -samplecode $(sample_dir)/CubeLiveWallpaper \
resources/samples/CubeLiveWallpaper "Cube Live Wallpaper" \ # samples/CubeLiveWallpaper "Cube Live Wallpaper" \
-samplecode $(sample_dir)/Home \ # -samplecode $(sample_dir)/Home \
resources/samples/Home "Home" \ # samples/Home "Home" \
-samplecode $(sample_dir)/HoneycombGallery \ # -samplecode $(sample_dir)/HoneycombGallery \
resources/samples/HoneycombGallery "Honeycomb Gallery" \ # samples/HoneycombGallery "Honeycomb Gallery" \
-samplecode $(sample_dir)/JetBoy \ # -samplecode $(sample_dir)/JetBoy \
resources/samples/JetBoy "JetBoy" \ # samples/JetBoy "JetBoy" \
-samplecode $(sample_dir)/KeyChainDemo \ # -samplecode $(sample_dir)/KeyChainDemo \
resources/samples/KeyChainDemo "KeyChain Demo" \ # samples/KeyChainDemo "KeyChain Demo" \
-samplecode $(sample_dir)/LunarLander \ # -samplecode $(sample_dir)/LunarLander \
resources/samples/LunarLander "Lunar Lander" \ # samples/LunarLander "Lunar Lander" \
-samplecode $(sample_dir)/training/ads-and-ux \ # -samplecode $(sample_dir)/training/ads-and-ux \
resources/samples/training/ads-and-ux "Mobile Advertisement Integration" \ # samples/training/ads-and-ux "Mobile Advertisement Integration" \
-samplecode $(sample_dir)/MultiResolution \ # -samplecode $(sample_dir)/MultiResolution \
resources/samples/MultiResolution "Multiple Resolutions" \ # samples/MultiResolution "Multiple Resolutions" \
-samplecode $(sample_dir)/training/multiscreen/newsreader \ # -samplecode $(sample_dir)/training/multiscreen/newsreader \
resources/samples/newsreader "News Reader" \ # samples/newsreader "News Reader" \
-samplecode $(sample_dir)/NotePad \ # -samplecode $(sample_dir)/NotePad \
resources/samples/NotePad "Note Pad" \ # samples/NotePad "Note Pad" \
-samplecode $(sample_dir)/SpellChecker/SampleSpellCheckerService \ # -samplecode $(sample_dir)/SpellChecker/SampleSpellCheckerService \
resources/samples/SpellChecker/SampleSpellCheckerService "Spell Checker Service" \ # samples/SpellChecker/SampleSpellCheckerService "Spell Checker Service" \
-samplecode $(sample_dir)/SpellChecker/HelloSpellChecker \ # -samplecode $(sample_dir)/SpellChecker/HelloSpellChecker \
resources/samples/SpellChecker/HelloSpellChecker "Spell Checker Client" \ # samples/SpellChecker/HelloSpellChecker "Spell Checker Client" \
-samplecode $(sample_dir)/SampleSyncAdapter \ # -samplecode $(sample_dir)/SampleSyncAdapter \
resources/samples/SampleSyncAdapter "Sample Sync Adapter" \ # samples/SampleSyncAdapter "Sample Sync Adapter" \
-samplecode $(sample_dir)/RandomMusicPlayer \ # -samplecode $(sample_dir)/RandomMusicPlayer \
resources/samples/RandomMusicPlayer "Random Music Player" \ # samples/RandomMusicPlayer "Random Music Player" \
-samplecode $(sample_dir)/RenderScript \ # -samplecode $(sample_dir)/RenderScript \
resources/samples/RenderScript "RenderScript" \ # samples/RenderScript "RenderScript" \
-samplecode $(sample_dir)/SearchableDictionary \ # -samplecode $(sample_dir)/SearchableDictionary \
resources/samples/SearchableDictionary "Searchable Dictionary v2" \ # samples/SearchableDictionary "Searchable Dictionary v2" \
-samplecode $(sample_dir)/SipDemo \ # -samplecode $(sample_dir)/SipDemo \
resources/samples/SipDemo "SIP Demo" \ # samples/SipDemo "SIP Demo" \
-samplecode $(sample_dir)/Snake \ # -samplecode $(sample_dir)/Snake \
resources/samples/Snake "Snake" \ # samples/Snake "Snake" \
-samplecode $(sample_dir)/SoftKeyboard \ # -samplecode $(sample_dir)/SoftKeyboard \
resources/samples/SoftKeyboard "Soft Keyboard" \ # samples/SoftKeyboard "Soft Keyboard" \
-samplecode $(sample_dir)/Spinner \ # -samplecode $(sample_dir)/Spinner \
resources/samples/Spinner "Spinner" \ # samples/Spinner "Spinner" \
-samplecode $(sample_dir)/SpinnerTest \ # -samplecode $(sample_dir)/SpinnerTest \
resources/samples/SpinnerTest "SpinnerTest" \ # samples/SpinnerTest "SpinnerTest" \
-samplecode $(sample_dir)/StackWidget \ # -samplecode $(sample_dir)/StackWidget \
resources/samples/StackWidget "StackView Widget" \ # samples/StackWidget "StackView Widget" \
-samplecode $(sample_dir)/TicTacToeLib \ # -samplecode $(sample_dir)/TicTacToeLib \
resources/samples/TicTacToeLib "TicTacToeLib" \ # samples/TicTacToeLib "TicTacToeLib" \
-samplecode $(sample_dir)/TicTacToeMain \ # -samplecode $(sample_dir)/TicTacToeMain \
resources/samples/TicTacToeMain "TicTacToeMain" \ # samples/TicTacToeMain "TicTacToeMain" \
-samplecode $(sample_dir)/ToyVpn \ # -samplecode $(sample_dir)/ToyVpn \
resources/samples/ToyVpn "Toy VPN Client" \ # samples/ToyVpn "Toy VPN Client" \
-samplecode $(sample_dir)/USB \ # -samplecode $(sample_dir)/USB \
resources/samples/USB "USB" \ # samples/USB "USB" \
-samplecode $(sample_dir)/WeatherListWidget \ # -samplecode $(sample_dir)/WeatherListWidget \
resources/samples/WeatherListWidget "Weather List Widget" \ # samples/WeatherListWidget "Weather List Widget" \
-samplecode $(sample_dir)/WiFiDirectDemo \ # -samplecode $(sample_dir)/WiFiDirectDemo \
resources/samples/WiFiDirectDemo "Wi-Fi Direct Demo" \ # samples/WiFiDirectDemo "Wi-Fi Direct Demo" \
-samplecode $(sample_dir)/Wiktionary \ # -samplecode $(sample_dir)/Wiktionary \
resources/samples/Wiktionary "Wiktionary" \ # samples/Wiktionary "Wiktionary" \
-samplecode $(sample_dir)/WiktionarySimple \ # -samplecode $(sample_dir)/WiktionarySimple \
resources/samples/WiktionarySimple "Wiktionary (Simplified)" \ # samples/WiktionarySimple "Wiktionary (Simplified)" \
-samplecode $(sample_dir)/VoiceRecognitionService \ # -samplecode $(sample_dir)/VoiceRecognitionService \
resources/samples/VoiceRecognitionService "Voice Recognition Service" \ # samples/VoiceRecognitionService "Voice Recognition Service" \
-samplecode $(sample_dir)/VoicemailProviderDemo \ # -samplecode $(sample_dir)/VoicemailProviderDemo \
resources/samples/VoicemailProviderDemo "Voicemail Provider Demo" \ # samples/VoicemailProviderDemo "Voicemail Provider Demo" \
-samplecode $(sample_dir)/XmlAdapters \ # -samplecode $(sample_dir)/XmlAdapters \
resources/samples/XmlAdapters "XML Adapters" \ # samples/XmlAdapters "XML Adapters" \
-samplecode $(sample_dir)/TtsEngine \ # -samplecode $(sample_dir)/TtsEngine \
resources/samples/TtsEngine "Text To Speech Engine" \ # samples/TtsEngine "Text To Speech Engine" \
-samplecode $(sample_dir)/training/device-management-policy \ # -samplecode $(sample_dir)/training/device-management-policy \
resources/samples/training/device-management-policy "Device Management Policy" # samples/training/device-management-policy "Device Management Policy"
## SDK version identifiers used in the published docs ## SDK version identifiers used in the published docs
@ -694,10 +694,9 @@ LOCAL_MODULE := online-sdk
LOCAL_DROIDDOC_OPTIONS:= \ LOCAL_DROIDDOC_OPTIONS:= \
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
$(web_docs_sample_code_flags) \
-toroot / \ -toroot / \
-hdf android.whichdoc online \ -hdf android.whichdoc online
-hdf template.showLanguageMenu true # $(web_docs_sample_code_flags)
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,77 @@
page.title=Samples
header.hide=1
@jd:body
<style>
div.landing-cell,
div.cell-icon {
height:150px;
}
div.cell-icon {
float:left;
margin-right:20px;
}
div.cell-icon img {
margin:0;
}
</style>
<div class="landing-banner">
<div class="col-6" style="min-height:0">
<img src="{@docRoot}images/google/google-services.png" alt="" width="340" height="193" />
</div>
<div class="col-6">
<h1 itemprop="name" style="margin-bottom:0;">Samples</h1>
<p itemprop="description">Some intro here. Overview of Samples, where to get them,
links to related tools and SDK, and what's new in samples. </p>
</div>
</div>
<div>&nbsp;</div>
<div style="margin-top:10px">
<div class="col-6 normal-links" style="margin-left:0">
<div class="landing-cell">
<div class="cell-icon">
<img src="{@docRoot}images/google/maps-pin.png" width="40" >
</div>
<h4><a href="{@docRoot}google/play-services/maps.html"
>Google Maps</a></h4>
<p>The power of Google Maps is available to your app
with an embeddable map view. You can customize the map with
markers and overlays, control the user's perspective, draw lines
and shapes, and much more.</p>
</div>
</div><!-- col-6 -->
<div class="col-6" style="margin-right:0">
<div class="landing-cell">
<div class="cell-icon">
<img src="{@docRoot}images/google/iab-99c.png" width="40" />
</div>
<h4><a href="{@docRoot}google/play/billing/index.html"
>Google Play In-App Billing</a></h4>
<p>Build an app with a steady revenue stream that keeps users engaged
by offering new content or virtual goods directly in your app. All transactions are handled
by Google Play Store for a simple user experience.
</p>
</div>
</div><!-- col-6 -->
</div><!-- margin wrapper -->

View File

@ -0,0 +1,23 @@
<ul id="nav">
<script type="text/javascript">
<!--
buildToggleLists();
changeNavLang(getLangPref());
//-->
</script>
<li class="nav-section">
<div class="nav-section-header"><a href="/samples/index.html">
<span class="en">About the Samples</span></a>
</div>
</li>
<li id="samples-tree-list" class="nav-section">
<div class="nav-section-header"><a href="/samples/index.html">
<span class="en">Root Node (remove)</span></a>
</div>
</li>
</ul>