5 Desinstalar una aplicación (paquete '.apk') en un dispositivo (si hay solo uno, no se indica nada) >adb uninstall paquete.apk Lanzar una consola remota del dispositivo adb provides an ash shell that you can use to run a variety of commands on an emulator or device. The command binaries are stored in the file system of the emulator or device, in this location: /system/bin/ >adb shell When you are ready to exit the remote shell, use CTRL+D or exit to end the shell session.

8 >adb logcat (to view log output in your development computer) >adb shell #logcat (from a remote adb shell in an emulator/device instance) nota: La consola que lanza el comando adb logcat se queda 'bloqueada' recibiendo información de registro desde el dispositivo; si se cierra esta consola (o se pulsa 'ctrl+c') se cerrará también el emulador. Una solución es abrir una segunda consola y utilizarla para lanzar nuevos comandos, dejando la anterior para visualizar el contenido del registro. Redirecting Log Output to a file >adb logcat -f fichero.txt...resto Filtering Log Output To reduce the log output to a manageable level, you can restrict log output using filter expressions. Filter expressions let you indicate to the system the tags-priority combinations that you are interested in the system suppresses other messages for the specified tags. A filter expression follows this format tag:priority..., where tag indicates the tag of interest and priority indicates the minimum level of priority to report for that tag. Messages for that tag at or above the specified priority are written to the log. You can supply any number of tag:priority specifications in a single filter expression. The series of specifications is whitespace-delimited. The default output is to show all log messages with the Info priority (*:I). For example: >adb logcat ActivityManager:V LifeCycleActivity:I *:S Here's an example of a filter expression that suppresses all log messages except those with the tag "ActivityManager", at priority "Verbose" or above, and all log messages with tag "LifeCycleActivity", with priority "Info" or above. The final element in the above expression, *:S, sets the priority level for all tags to "silent", thus ensuring only log messages with "ActivityManager" and "LifeCycleActivity" are displayed. Using *:S is an excellent way to ensure that log output is restricted to the filters that you have explicitly specified it lets your filters serve as a "whitelist" for log output. The following filter expression displays all log messages with priority level "warning" and higher, on all tags: >adb logcat *:W If you're running logcat from your development computer (versus running it on a remote adb

9 shell), you can also set a default filter expression by exporting a value for the environment variable ANDROID_LOG_TAGS: export ANDROID_LOG_TAGS="ActivityManager:V LifeCicleActivity:I *:S" Note that ANDROID_LOG_TAGS filter is not exported to the emulator/device instance, if you are running logcat from a remote shell or using adb shell logcat. Controlling Log Output Format Log messages contain a number of metadata fields, in addition to the tag and priority. You can modify the output format for messages so that they display a specific metadata field. To do so, you use the -v option and specify one of the supported output formats listed below. brief Display priority/tag and the PID of process issuing the message (the default format). process Display PID only. tag Display the priority/tag only. raw Display the raw log message, with no other metadata fields. time Display the date, invocation time, priority/tag, and PID of the process issuing the message. threadtime Display the date, invocation time, priority, tag, and the PID and TID of the thread issuing the message. long Display all metadata fields and separate messages with a blank lines. When starting logcat, you can specify the output format you want by using the -v option: [adb] logcat [-v <format>] Here's an example that shows how to generate messages in thread output format: adb logcat -v thread Note that you can only specify one output format with the -v option. For example: >adb logcat -v process LifeCycleActivity:I *:S >adb logcat -v raw LifeCycleActivity:I *:S Viewing Alternative Log Buffers The Android logging system keeps multiple circular buffers for log messages, and not all of the log messages are sent to the default circular buffer. To see additional log messages, you can start

10 logcat with the -b option, to request viewing of an alternate circular buffer. You can view any of these alternate buffers: radio View the buffer that contains radio/telephony related messages. events View the buffer containing events-related messages. main View the main log buffer (default) The usage of the -b option is: [adb] logcat [-b <buffer>] Here's an example of how to view a log buffer containing radio and telephony messages: adb logcat -b radio Viewing stdout and stderr By default, the Android system sends stdout and stderr (System.out and System.err) output to /dev/null. In processes that run the Dalvik VM, you can have the system write a copy of the output to the log file. In this case, the system writes the messages to the log using the log tags stdout and stderr, both with priority I. To route the output in this way, you stop a running emulator/device instance and then use the shell command setprop to enable the redirection of output. Here's how you do it: >adb shell stop >adb shell setprop log.redirect-stdio true >adb shell start The system retains this setting until you terminate the emulator/device instance. To use the setting as a default on the emulator/device instance, you can add an entry to /data/local.prop on the device. emulator Arrancar el emulador con una instancia de dispositivo: 1º) Averiguamos la lista de instancias de dispositivos ya creadas: >android list avd

Brief Introduction to Docking and Virtual Screening with Autodock4 and Autodock Tools Environment set up Launch AutoDock Tools Gui. Aplicaciones --> MGLTools-1.5.4 --> AutoDockTools-1.5.4 You should see

manual de servicio nissan murano z51 Reference Manual To understand featuring to use and how to totally exploit manual de servicio nissan murano z51 to your great advantage, there are several sources of

Ayuda de trabajo Nueva confirmación de pedido de compra con cambios: proveedor ES Step 1. This Supplier portal activity lists the steps necessary for confirming a new purchase order with changes on price,

Hoja 1 DE 9 Connecting Cloudino Connector to FIWARE IoT 1. What is FIWARE IoT FIWARE is an open software ecosystem provided by the FIWARE Community (htttp://www.fiware.org). FIWARE exposes to developers

Flashcards Series 3 El Aeropuerto Flashcards are one of the quickest and easiest ways to test yourself on Spanish vocabulary, no matter where you are! Test yourself on just these flashcards at first. Then,

Welcome to lesson 2 of the The Spanish Cat Home learning Spanish course. Bienvenidos a la lección dos. The first part of this lesson consists in this audio lesson, and then we have some grammar for you

1. Instalar Cygwin Según: http://www.cygwin.com/ What Is Cygwin? Instalación y Configuración de Magic en Windows.. Cygwin is a Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll)

2008 Series Hemodialysis Machine Operator s Manuals Addendum for Concentrate Connection Caution: Federal (US) law restricts this device to sale only by or on the order of a physician. This is an addendum

TOUCH MATH What is it and why is my child learning this? Memorizing math facts is an important skill for students to learn. Some students have difficulty memorizing these facts, even though they are doing

Your response will be used by Facebook to improve your experience. You can't edit the details of this audience because it was created by someone else and shared with you. La respuesta será usada por Facebook

Reflexive verbs In this presentation, we are going to look at a special group of verbs called reflexives. Let s start out by thinking of the English verb wash. List several things that you can wash. Some

& An explanation by Sr. Jdan direct object pronouns We usually use Direct Object Pronouns to substitute f it them in a sentence when the it them follows the verb. Because of gender, him and her could also

The ADE Direct Certification User Guide is a tool for authorized ADE and school district personnel to use in conjunction with the ADE Direct Certification website. 1 This User Guide is a reference guide