Home | History | Annotate | Download | only in projects

Lines Matching full:code

38   <p>The <code>android</code> tool provides you with commands to create all three types of
59 <p>To create an Android project, you must use the <code>android</code> tool. When you create a
60 new project with <code>android</code>, it will generate a project directory with some default
63 <p>To create a new Android project, open a command-line, navigate to the <code>tools/</code>
75 <li><code>target</code> is the "build target" for your application. It corresponds to an
78 execute: <code>android list targets</code>.</li>
80 <li><code>name</code> is the name for your project. This is optional. If provided, this name
83 <li><code>path</code> is the location of your project directory. If the directory does not
86 <li><code>activity</code> is the name for your default {@link android.app.Activity} class. This
88 <code><em>&lt;path_to_your_project&gt;</em>/src/<em>&lt;your_package_namespace_path&gt;</em>/</code>
89 . This will also be used for your .apk filename unless you provide a <code>name</code>.</li>
91 <li><code>package</code> is the package namespace for your project, following the same rules as
108 SDK <code>platform-tools/</code> directory &mdash; to send your application to the emulator (discussed
109 later). So you need access between your project solution and the <code>platform-tools/</code> folder.</p>
111 <p class="note"><strong>Tip:</strong> Add the <code>platform-tools/</code> as well as the <code>tools/</code> directory
112 to your <code>PATH</code> environment variable.</p>
115 SDK directory, because this will break the SDK location property located in <code>local.properties</code>.
116 If you need to update the SDK location, use the <code>android update project</code> command.
122 project from existing code, use the <code>android update project</code> command to update the
124 target of an existing project (with the <code>--target</code> option) and the project name (with
125 the <code>--name</code> option). The <code>android</code> tool will generate any files and
130 <code>tools/</code> directory of your SDK. Now run:</p>
137 <li><code>target</code> is the "build target" for your application. It corresponds to an
140 execute: <code>android list targets</code>.</li>
142 <li><code>path</code> is the location of your project directory.</li>
144 <li><code>name</code> is the name for the project. This is optional&mdash;if you're not
156 as you would a new application project. Specifically, you can use the <code>android</code> tool
159 <p>To create a new library project, navigate to the <code>&lt;sdk&gt;/tools/</code> directory and
168 <p>The <code>create lib-project</code> command creates a standard project structure that includes
170 adding this line to the project's <code>project.properties</code> file:</p>
176 code and resources into it, as described in the sections below.</p>
179 applications can use it, you can do so by adding a the <code>android.library=true</code> property
180 to the application's <code>project.properties</code> file.</p>
190 project declares the Activity <code>GameActivity</code>:</p>
214 <p>If you are developing an application and want to include the shared code or resources from a
218 <p>To add a reference to a library project, navigate to the <code>&lt;sdk&gt;/tools/</code>
228 library project. Specifically, it adds an <code>android.library.reference.<em>n</em></code>
229 property to the project's <code>project.properties</code> file. For example:</p>
235 priority (and merge order) by manually editing the <code>project.properties</code> file and
236 adjusting the each reference's <code>.<em>n</em></code> index as appropriate. For example, assume
244 <p>You can reorder the references to give highest priority to <code>library_projectC</code> in
252 <p>Note that the <code>.<em>n</em></code> index in the references must begin at "1" and increase
264 declare any <code>&lt;activity&gt;</code>, <code>&lt;service&gt;</code>,
265 <code>&lt;receiver&gt;</code>, <code>&lt;provider&gt;</code>, and so on, as well as
266 <code>&lt;permission&gt;</code>, <code>&lt;uses-library&gt;</code>, and similar elements.</p>
273 application declares the library Activity <code>GameActivity</code> like this:</p>