blob: 7ebd72e3d9014915ff75252454eff7195695b94c [file] [log] [blame]
page.title=Instrumentation
@jd:body
<dl>
<dt><a href="inst-framework.html">Instrumentation Framework</a></dt>
<dt><a href="inst-testing.html">Instrumentation Testing</a></dt>
</dl>
<!--
<p>Android provides an instrumentation framework that lets you create a bundle of instrumentation tests and attach them to your application. When you run the instrumentation from the command line, the Android system d
through an <code>&lt;instrumentation&gt;</code> element in its manifest file. You write your instrumentation tests in a subclass of {@link android.app.Instrumentation}, from which you have access to a variety of methods for managing the state of the application, from within the application's process. For example, you can write instrumentation to
<ul>
<li>Instantiate the process's Application object
<li>Instantiate an Activity and change it's lifecycle state
<li>Send keypad events to the currently focused window
<li>Execute a menu item
<li>Take a performance snapshot, and
<li>Attach an
When running with instrumentation turned on, the system instantiates class will be instantiated for you before any of the application code, allowing you to monitor all of the interaction the system has with the application. An Instrumentation implementation is described to the system through an AndroidManifest.xml's &lt;instrumentation> tag.
<ul>
<li>
<a href="hierarchy.html">IntroducHierarchy of Screen Elements</a>
</li>
<li>
<a href="layout.html">Common Layout Objects</a>
</li>
<li>
<a href="ui-xml.html">Declaring a UI in XML</a>
</li>
<li>
<a href="binding.html">Binding to Data with AdapterView</a>
</li>
<li>
<a href="ui-events.html">Handling UI Events</a>
</li>
<li>
<a href="themes.html">Applying Styles and Themes to Your Application</a>
</li>
<li>
<a href="custom-views.html">Building Custom Views</a>
</li>
<li>
<a href="glossary.html">UI Elements and Concepts Glossary</a>
</li>
<li>
<a href="{@docRoot}guide/tutorials/views/index.html">Hello Views</a>
</li>
</ul>
-->