jackpal/Android-Terminal-Emulator — pull request #114 by steven676 (2012-05-15 06:23:15+00:00)
Title: Sample widget activity, sending commands to existing windows via remote interface, miscellaneous bug fixes

Patches 1-9 are the Telnet client which is the sample widget activity discussed in #40.

Patch 10 fixes a crash observed during the testing of the Telnet client where screen resize causes the cursor to scroll off screen. It also fixes a couple of other rarely-noticeable bugs involving screen resize and cursor placement.

Patches 11-12 implement sending commands to existing windows from the remote interface by providing a handle (currently a randomly generated UUID, though users should not depend on that) which can be passed back to the remote interface to select a window to target. Patch 13 fixes switching to a window via the remote interface if the Term activity has to be created in the process (e.g. if terminal sessions are running, but the activity was destroyed using the Back key before the remote request was sent).

Patch 14 causes the Action Bar to be hidden on startup if the user has it set to hide via preferences, but has chosen to have the status bar remain visible. Previous, the Action Bar would have to be hidden manually (by tapping on the screen) in this case.

Tested lightly on 1.5, 2.3.7/x86, 4.0.3/arm phone emulators, 3.0/arm and 4.0.3/arm tablet emulators, and a Nexus S running 4.0.3.