diff options
| author | Ricardo Cervera <rcervera@google.com> | 2014-06-24 21:39:17 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-06-24 18:00:13 +0000 |
| commit | 4af882fdf5ca60a9038cd66265ec2723c15a26c5 (patch) | |
| tree | 033d497fc69a5364e6f871cf40d75d838e27256a /docs/html | |
| parent | 23a0e2ac1b671059ab934ccf357f0bfdb4f2e492 (diff) | |
| parent | 1f0ffac153ab7b78e44dd3481647ca300d66f023 (diff) | |
| download | frameworks_base-4af882fdf5ca60a9038cd66265ec2723c15a26c5.zip frameworks_base-4af882fdf5ca60a9038cd66265ec2723c15a26c5.tar.gz frameworks_base-4af882fdf5ca60a9038cd66265ec2723c15a26c5.tar.bz2 | |
Merge "docs: Adding docs for the new Android Studio wizards" into klp-modular-dev
Diffstat (limited to 'docs/html')
| -rw-r--r-- | docs/html/images/tools/wizard2.png | bin | 0 -> 128450 bytes | |||
| -rw-r--r-- | docs/html/images/tools/wizard3.png | bin | 0 -> 147549 bytes | |||
| -rw-r--r-- | docs/html/images/tools/wizard4.png | bin | 0 -> 230102 bytes | |||
| -rw-r--r-- | docs/html/images/tools/wizard5.png | bin | 0 -> 171163 bytes | |||
| -rw-r--r-- | docs/html/images/tools/wizard6.png | bin | 0 -> 78865 bytes | |||
| -rw-r--r-- | docs/html/images/tools/wizard7.png | bin | 0 -> 737853 bytes | |||
| -rw-r--r-- | docs/html/sdk/installing/create-project.jd | 86 | ||||
| -rw-r--r-- | docs/html/tools/tools_toc.cs | 4 |
8 files changed, 89 insertions, 1 deletions
diff --git a/docs/html/images/tools/wizard2.png b/docs/html/images/tools/wizard2.png Binary files differnew file mode 100644 index 0000000..921d58c --- /dev/null +++ b/docs/html/images/tools/wizard2.png diff --git a/docs/html/images/tools/wizard3.png b/docs/html/images/tools/wizard3.png Binary files differnew file mode 100644 index 0000000..d5749d5 --- /dev/null +++ b/docs/html/images/tools/wizard3.png diff --git a/docs/html/images/tools/wizard4.png b/docs/html/images/tools/wizard4.png Binary files differnew file mode 100644 index 0000000..2709f7b --- /dev/null +++ b/docs/html/images/tools/wizard4.png diff --git a/docs/html/images/tools/wizard5.png b/docs/html/images/tools/wizard5.png Binary files differnew file mode 100644 index 0000000..105cf2a --- /dev/null +++ b/docs/html/images/tools/wizard5.png diff --git a/docs/html/images/tools/wizard6.png b/docs/html/images/tools/wizard6.png Binary files differnew file mode 100644 index 0000000..8b0691c --- /dev/null +++ b/docs/html/images/tools/wizard6.png diff --git a/docs/html/images/tools/wizard7.png b/docs/html/images/tools/wizard7.png Binary files differnew file mode 100644 index 0000000..83396cf --- /dev/null +++ b/docs/html/images/tools/wizard7.png diff --git a/docs/html/sdk/installing/create-project.jd b/docs/html/sdk/installing/create-project.jd new file mode 100644 index 0000000..c0d523a --- /dev/null +++ b/docs/html/sdk/installing/create-project.jd @@ -0,0 +1,86 @@ +page.title=Creating a Project + +@jd:body + +<p>Android Studio makes it easy to create Android apps for several form factors, such as phone, +tablet, TV, Wear, and Google Glass. The <em>New Project</em> wizard lets you choose the form factors +for your app and populates the project structure with everything you need to get started.</p> + +<p>Follow the steps in this section to create a project in Android Studio.</p> + +<h2>Step 1: Create a New Project</h2> + +<p>If you didn't have a project opened, Android Studio shows the Welcome screen. +To create a new project, click <strong>New Project</strong>.</p> + +<p>If you had a project opened, Android Studio shows the development environment. +To create a new project, click <strong>File</strong> > <strong>New Project</strong>.</p> + +<p>The next window lets you configure the name of your app, the package name, and the location +of your project.</p> + +<img src="{@docRoot}images/tools/wizard2.png" alt="" width="500" height="381"> +<p class="img-caption"><strong>Figure 1.</strong> Choose a name for your project.</p> + +<p>Enter the values for your project and click <strong>Next</strong>.</p> + + +<h2>Step 2: Select Form Factors and API Level</h2> + +<p>The next window lets you select the form factors supported by your app, such as phone, tablet, +TV, Wear, and Google Glass. For each form factor, you can also select the API +Level that your app requires. To get more information, click <strong>Help me choose</strong>.</p> + +<img src="{@docRoot}images/tools/wizard4.png" alt="" width="750" height="510"> +<p class="img-caption"><strong>Figure 2.</strong> Select the API Level.</p> + +<p>The API Level window shows the distribution of mobile devices running each version of Android, +as shown in Figure 2. Click on an API level to see a list of features introduced in the corresponding +version of Android. This helps you choose the minimum API Level that has all the features that +your apps needs, so you can reach as many devices as possible. Then click <strong>OK</strong>.</p> + +<img src="{@docRoot}images/tools/wizard3.png" alt="" width="500" height="480"> +<p class="img-caption"><strong>Figure 3.</strong> Choose form factors for your app.</p> + +<p>Then, on the Form Factors Window, click <strong>Next</strong>.</p> + + +<h2>Step 3: Add an Activity</h2> + +<p>The next screen lets you select an activity type to add to your app, as shown in Figure 4. +This screen depends on the form factors you selected earlier.</p> + +<img src="{@docRoot}images/tools/wizard5.png" alt="" width="720" height="504"> +<p class="img-caption"><strong>Figure 4.</strong> Add an activity to your app.</p> + +<p>Choose an activity type and click <strong>Next</strong>.</p> + + +<h2>Step 4: Configure Your Activity</h2> + +<p>The next screen lets you configure the activity to add to your app, as shown in Figure 6.</p> + +<img src="{@docRoot}images/tools/wizard6.png" alt="" width="450" height="385"> +<p class="img-caption"><strong>Figure 6.</strong> Choose a name for your activity.</p> + +<p>Enter the activity name, the layout name, and the activity title. Then click +<strong>Finish</strong>.</p> + + +<h2>Step 5: Develop Your App</h2> + +<p>Android Studio creates the default structure for your project and opens the development +environment. If your app supports more than one form factor, Android Studio creates a module for +each of them, as shown in Figure 7.</p> + +<img src="{@docRoot}images/tools/wizard7.png" alt="" width="750" height="509"> +<p class="img-caption"><strong>Figure 7.</strong> The default project structure for a mobile app.</p> + +<p>Now you are ready to develop your app. Fore more information, see the following links:</p> + +<ul> +<li><a href="{@docRoot}training/">Training Lessons</a></li> +<li><a href="{@docRoot}training/building-wearables.html">Building Apps for Wearables</a></li> +<li><a href="{@docRoot}tv/">Android TV</a></li> +<li><a href="https://developers.google.com/glass/">Google Glass</a></li> +</ul> diff --git a/docs/html/tools/tools_toc.cs b/docs/html/tools/tools_toc.cs index fb4659f..93e5976 100644 --- a/docs/html/tools/tools_toc.cs +++ b/docs/html/tools/tools_toc.cs @@ -11,7 +11,7 @@ <span class="en">Adding SDK Packages</span></a></li> </ul> </li> - + <li class="nav-section"> <div class="nav-section-header"> @@ -20,6 +20,8 @@ <ul> <li><a href="<?cs var:toroot ?>sdk/installing/migrate.html"> Migrating from Eclipse</a></li> + <li><a href="<?cs var:toroot ?>sdk/installing/create-project.html"> + Creating a Project</a></li> <li><a href="<?cs var:toroot ?>sdk/installing/studio-tips.html"> Tips and Tricks</a></li> <li><a href="<?cs var:toroot ?>sdk/installing/studio-layout.html"> |
