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

Commit d8ecc59f authored by Joe Fernandez's avatar Joe Fernandez Committed by Android (Google) Code Review
Browse files

Merge "docs: Android Eclipse ADT update and removals - Batch 03" into mnc-docs

parents 4b0be652 a7a294cf
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -914,8 +914,8 @@ supporting flatter view hierarchies that are faster to layout and render.
Because hierarchies are flatter, developers can also manage alignments between
components that are visually related to each other even when they are not
logically related, for precise control over application UI. GridLayout is also
specifically designed to be configured by drag-and-drop design tools such as the
ADT Plug-in for Eclipse.</p>
specifically designed to be configured by drag-and-drop design tools such as
Android Studio.</p>


<p style="margin-top:1em;margin-bottom:.75em;"><strong>OpenGL ES texture
+21 −22
Original line number Diff line number Diff line
@@ -450,37 +450,36 @@ receives updates about the download progress.</li>
download two packages from the SDK Manager and add the appropriate libraries to your
application.</p>

<p>First, open the <a href="{@docRoot}sdk/exploring.html">Android SDK Manager</a>, expand
<em>Extras</em> and download:</p>
<p>First, open the <a href="{@docRoot}sdk/exploring.html">Android SDK Manager</a>
(<strong>Tools > Android > SDK Manager</strong>), and under
<em>Appearance & Behavior > System Settings > Android SDK</em>, select
the <em>SDK Tools</em> tab to select and download:</p>
<ul>
  <li><em>Google Play Licensing Library package</em></li>
  <li><em>Google Play APK Expansion Library package</em></li>
</ul>

<p>If you're using Eclipse, create a project for each library and add it to your app:</p>
<p>Create a new library module for the License Verification Library and Downloader
Library. For each library:</p>
<ol>
  <li>Create a new Library Project for the License Verification Library and Downloader
Library. For each library:
    <ol>
      <li>Begin a new Android project.</li>
      <li>Select <strong>Create project from existing
source</strong> and choose the library from the {@code &lt;sdk&gt;/extras/google/} directory
({@code market_licensing/} for the License Verification Library or {@code
market_apk_expansion/downloader_library/} for the Downloader Library).</li>
      <li>Specify a <em>Project Name</em> such as "Google Play License Library" and "Google Play
Downloader
Library"</li>
      <li>Click <strong>Finish</strong>.</li>
  <li>Select <strong>File > New > New Module</strong>.</li>
  <li>In the <em>Create New Module</em> window, select <strong>Android Library</strong>,
and then select <strong>Next</strong>.</li>
  <li>Specify an <em>Application/Library name</em> such as "Google Play License Library"
and "Google Play Downloader Library", choose <em>Minimum SDK level</em>, then select
<strong>Finish</strong>.</li>
  <li>Select <strong>File > Project Structure</strong>.</li>
  <li>Select the <em>Properties</em> tab and in <em>Library
Repository</em>, enter the library from the {@code &lt;sdk&gt;/extras/google/} directory
({@code play_licensing/} for the License Verification Library or {@code
play_apk_expansion/downloader_library/} for the Downloader Library).</li>
  <li>Select <strong>OK</strong> to create the new module.</li>
</ol>

<p class="note"><strong>Note:</strong> The Downloader Library depends on the License
Verification Library. Be sure to add the License
Verification Library to the Downloader Library's project properties (same process as
steps 2 and 3 below).</p>
Verification Library to the Downloader Library's project properties.</p>
  </li>
  <li>Right-click the Android project in which you want to use APK expansion files and
select <strong>Properties</strong>.</li>
  <li>In the <em>Library</em> panel, click <strong>Add</strong> to select and add each of the
libraries to your application.</li>
</ol>

<p>Or, from a command line, update your project to include the libraries:</p>
+15 −15
Original line number Diff line number Diff line
@@ -208,8 +208,8 @@ likely to be unpopular.</p>
you're using the emulator, since the emulator uses your desktop computer's
network connection. That's almost guaranteed to be much faster than a cell
network, so you'll want to change the settings on the emulator that simulate
slower network speeds. You can do this in Eclipse, in the "Emulator Settings"
tab of your launch configuration or via a <a
slower network speeds. You can do this in Android Studio via the AVD Manager or
via a <a
href="{@docRoot}tools/help/emulator.html#netspeed">command-line
option</a> when starting the emulator.</p>

+1 −4
Original line number Diff line number Diff line
@@ -920,10 +920,7 @@ in multiple activities and more easily edit the animation sequence.</p>
<p>To distinguish animation files that use the new property animation APIs from those that use the
legacy <a href="{@docRoot}guide/topics/graphics/view-animation.html">view animation</a> framework,
starting with Android 3.1, you should save the XML files for property animations in the {@code
res/animator/} directory (instead of {@code res/anim/}). Using the {@code animator} directory name
is optional, but necessary if you want to use the layout editor tools in the Eclipse ADT plugin (ADT
11.0.0+), because ADT only searches the {@code res/animator/} directory for property animation
resources.</p>
res/animator/} directory.</p>

<p>The following property animation classes have XML declaration support with the
  following XML tags:</p>
+10 −7
Original line number Diff line number Diff line
@@ -402,20 +402,23 @@ dynamic set of data is updated each time the user location updates.</p>
user location works. This is most easily done using a real Android-powered device. If, however, you
don't have a device, you can still test your location-based features by mocking location data in
the Android emulator. There are three different ways to send your application mock location
data: using Eclipse, DDMS, or the "geo" command in the emulator console.</p>
data: using Android Studio, DDMS, or the "geo" command in the emulator console.</p>

<p class="note"><strong>Note:</strong> Providing mock location data is injected as GPS location
data, so you must request location updates from <code>GPS_PROVIDER</code> in order for mock location
data to work.</p>

<h3 id="MockEclipse">Using Eclipse</h3>
<h3 id="MockAVD">Using Android Studio</h3>

<p>Select <b>Window</b> &gt; <b>Show View</b> &gt; <b>Other</b> &gt; <b>Emulator Control</b>.</p>
<p>Select <b>Tools</b> &gt; <b>Android</b> &gt; <b>AVD Manager</b>. In the Android Virtual
Device Manager window, choose your AVD and launch it in the emulator by selecting the green 
play arrow in the Actions column.</p>

<p>In the Emulator Control panel, enter GPS coordinates under Location Controls as individual
lat/long coordinates, with a GPX file for route playback, or a KML file for multiple place marks.
(Be sure that you have a device selected in the Devices panel&mdash;available from <b>Window</b>
&gt; <b>Show View</b> &gt; <b>Other</b> &gt; <b>Devices</b>.)</p>
<p>Then, select <b>Tools</b> &gt; <b>Android</b> &gt; <b>Android Device Monitor</b>.
Select the Emulator Control tab in the Android Device Monitor window, and enter GPS coordinates 
under Location Controls as individual lat/long coordinates, with a GPX file for route playback, 
or a KML file for multiple place marks.
</p>


<h3 id="MockDdms">Using DDMS</h3>
Loading