@@ -1106,7 +1107,11 @@ manage SQLite databases created by Android applications. The
<code>.schema</code> to print the SQL CREATE statement for an existing table.
The tool also gives you the ability to execute SQLite commands on the fly.</p>
<p>To use <code>sqlite3</code>, enter a remote shell on the emulator instance, as described above, then invoke the tool using the <code>sqlite3</code> command. Optionally, when invoking <code>sqlite3</code> you can specify the full path to the database you want to explore. Emulator/device instances store SQLite3 databases in the folder <code><span chatdir="1"><span chatindex="259474B4B070F261">/data/data/<em><package_name></em>/databases</span></span>/</code>. </p>
<p>To use <code>sqlite3</code>, enter a remote shell on the emulator instance, as described above,
then invoke the tool using the <code>sqlite3</code> command. Optionally, when invoking
<code>sqlite3</code> you can specify the full path to the database you want to explore.
Emulator/device instances store SQLite3 databases in the folder
@@ -1117,11 +1122,107 @@ Enter ".help" for instructions
<em>.... enter commands, then quit...</em>
sqlite> .exit </pre>
<p>Once you've invoked <code>sqlite3</code>, you can issue <code>sqlite3</code> commands in the shell. To exit and return to the adb remote shell, use <code>exit</code> or <code>CTRL+D</code>.
<p>Once you've invoked <code>sqlite3</code>, you can issue <code>sqlite3</code> commands in the
shell. To exit and return to the adb remote shell, use <code>exit</code> or <code>CTRL+D</code>.
<h3 id="screenrecord">Recording a device screen</h3>
<p>The {@code screenrecord} command is a shell utility for recording the display of a device as you
use it. The utility records screen activity to an MPEG-4 file, which you can then download and use
as part of a video presentation. This utility is useful for developers who want to create
promotional or training videos without using a separate recording device.</p>
<p>To use the {@code screenrecord} from the command line, type the following:
<pre>
$ adb shell screenrecord /sdcard/demo.mp4
</pre>
<p>Stop the screen recording by pressing Ctrl-C, otherwise the recording stops automatically
at three minutes or the time limit set by {@code --time-limit}.</p>
<p>Here's an example recording session, using the adb shell to record the video and the
{@code pull} command to download the file from the device:<p>
<pre>
$ adb shell
shell@ $ screenrecord --verbose /sdcard/demo.mp4
(press Ctrl-C to stop)
shell@ $ exit
$ adb pull /sdcard/demo.mp4
</pre>
<p>The {@code screenrecord} utility can record at any supported resolution and bit rate you
request, while retaining the aspect ratio of the device display. The utility records at the native
display resolution and orientation by default, with a maximum length of three minutes.</p>
<p>There are some known limitations of the {@code screenrecord} utility that you should be aware
of when using it:</p>
<ul>
<li>Some devices may not be able to record at their native display resolution.
If you encounter problems with screen recording, try using a lower screen resolution.</li>
<li>Rotation of the screen during recording is not supported. If the screen does rotate during
recording, some of the screen is cut off in the recording.</li>
<li>Audio is not recorded with the video file.</li>