diff options
author | Joe Fernandez <joefernandez@google.com> | 2013-10-30 23:22:52 -0700 |
---|---|---|
committer | Joe Fernandez <joefernandez@google.com> | 2013-10-31 16:35:28 +0000 |
commit | 43730d47796483652721b354ec5a4d7c6d291710 (patch) | |
tree | cd786c886099b7191a7ee7f6cd444b101ee034b2 /docs/html/samples | |
parent | 61a7ee53eb33b299565c426304dd2bc8b8d7254c (diff) | |
download | frameworks_base-43730d47796483652721b354ec5a4d7c6d291710.zip frameworks_base-43730d47796483652721b354ec5a4d7c6d291710.tar.gz frameworks_base-43730d47796483652721b354ec5a4d7c6d291710.tar.bz2 |
docs: Sample Code landing page
Change-Id: Id9979885357cae410fdb7c034321aa902b331267
(cherry picked from commit c779c01eccd22550e3440953530442772792e6c1)
Diffstat (limited to 'docs/html/samples')
-rw-r--r-- | docs/html/samples/index.jd | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/docs/html/samples/index.jd b/docs/html/samples/index.jd index 3ea5245..31544b0 100644 --- a/docs/html/samples/index.jd +++ b/docs/html/samples/index.jd @@ -1,11 +1,39 @@ page.title=Samples +page.tags="samples","examples","code" + @jd:body -<div id="samples"> -<p>Some kind of sample sorting will appear here.</p> -</div> +<p>Welcome to code samples for Android developers. Here you can browse sample code + and learn how to build different components for your applications. Use the categories on the left + to browse the available samples.</p> + +<p>Each sample is a fully functioning Android app. You can browse the resources, source files and + see the overall project structure. You can copy and paste the code you need, and if you want to + share a link to a specific line you can double-click it to the get the url.</p> + +<p>If you want to download a complete project, just click on any source file in the project and + click the link in the upper right of the source page.</p> +<p class="note"> + <strong>Note:</strong> At this time, the downloadable projects are designed for use with Gradle + and Android Studio. Project downloads for Eclipse will be available soon! +</p> -<script> -</script> +<p>To import a downloaded project into <a href="{@docRoot}sdk/installing/studio.html">Android + Studio</a>:</p> + +<ul> + <li>Unpack the downloaded project package.</li> + <li>In Android Studio, chose <strong>File > Import Project</strong> and select root folder of + the unpacked project. + <p>Android Studio may ask you to choose the type of project you are importing. + If this is the case, make sure to choose <strong>Import project from + external model</strong> and the <strong>Gradle</strong> option. + </p> + </li> +</ul> + + +<div id="samples"> +</div> |