android-logcat

How to get logs of other apps?

China☆狼群 提交于 2019-12-10 13:25:49
问题 I want to read logs from other apps and filter them so when a certain keyword is being logged, my application will perform a certain task. I found several methods of reading logs, but from my testing I could only get my application logs. This is the method I originally tried to use try { Process process = Runtime.getRuntime().exec("logcat -d"); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream())); StringBuilder log=new StringBuilder(); String

How can I print the full logcat history in a TextView in Android?

ぐ巨炮叔叔 提交于 2019-12-10 11:43:49
问题 I'm using logcat to log messages in my Android application, and I'd like to be able to access these messages and show them in a TextView in a DialogFragment. The list of messages is very inconsistent and changes each time I open and close the dialog. It shows the full history once, and then the next time it erases, and sometimes it shows some more messages. Is there anything that I can do to show all the messages (for the run) each time I open the dialog? Am I running the process at the wrong

Android Webview Unknown Error

坚强是说给别人听的谎言 提交于 2019-12-10 02:02:07
问题 I have made an app that uses WebView . It works, however, the LogCat produces this error: 03-27 10:36:35.830: E/eglCodecCommon(1466): **** ERROR unknown type 0x0 (glSizeof,73) I understand that 0x0 is an unknown error type (in Linux command), but how can I fix this? My Java code is: @SuppressLint("SetJavaScriptEnabled") public class MainActivity extends Activity { /** Called when the activity is first created. */ private WebView edlineWebView; private ProgressBar progressBar1; private String

Does too many log writing decreases android application performance?

别来无恙 提交于 2019-12-10 01:48:21
问题 I would to know whether logging can decrease application performance? Also, please give me some tips to increase android application performance. 回答1: Yes. Excessive logging affects the performance of any application not just Android. The developer guide suggests you to deactivate and disabled logging before release: Turn off logging and debugging Make sure you deactivate logging and disable the debugging option before you build your application for release. You can deactivate logging by

applying logcat filter programmatically

依然范特西╮ 提交于 2019-12-08 14:46:00
问题 I need to dump logcat with filter programmatically. I applied adb logcat -s "TAGNAME" but the app just "hung". there is a similar thread but there is no solution: Read filtered log cat(Programmatically)? try { Process process = Runtime.getRuntime().exec("logcat -s XXX"); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream())); StringBuilder log = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) { log.append(line)

Android debug without USB [closed]

白昼怎懂夜的黑 提交于 2019-12-08 13:01:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I use Eclipse and I want to debug my app using my device but without damaging its battery, because I should always charge it when it's still not discharged. Is it possible to connect a device to adb without connecting it via USB? I tried with logcat apps but it's a bit uncomfortable. I searched an

How can I print the full logcat history in a TextView in Android?

喜你入骨 提交于 2019-12-08 12:00:32
I'm using logcat to log messages in my Android application, and I'd like to be able to access these messages and show them in a TextView in a DialogFragment. The list of messages is very inconsistent and changes each time I open and close the dialog. It shows the full history once, and then the next time it erases, and sometimes it shows some more messages. Is there anything that I can do to show all the messages (for the run) each time I open the dialog? Am I running the process at the wrong time or something? Or should the buffer be handles somewhere else? Thanks. public boolean

In android logcat some of the log information missing .How to see all log cat details/data or save in a file?

强颜欢笑 提交于 2019-12-08 07:12:58
问题 Im new to android. Im developing some android app. It sends/receive the data to/from server I shows the the data from server which is received in log cat. The data is received the application processed it. But in log cat the following is displayed ?:??: W/?(?): --------- beginning of /dev/log/system 08-01 10:55:33.676: I/KeyInputQueue(176): Enqueueing touch event0 08-01 10:55:33.676: I/WindowManager(176): Read next event 0 08-01 10:55:33.676: I/WindowManager(176): Delivering pointer 0 >

In android logcat some of the log information missing .How to see all log cat details/data or save in a file?

末鹿安然 提交于 2019-12-07 19:14:25
Im new to android. Im developing some android app. It sends/receive the data to/from server I shows the the data from server which is received in log cat. The data is received the application processed it. But in log cat the following is displayed ?:??: W/?(?): --------- beginning of /dev/log/system 08-01 10:55:33.676: I/KeyInputQueue(176): Enqueueing touch event0 08-01 10:55:33.676: I/WindowManager(176): Read next event 0 08-01 10:55:33.676: I/WindowManager(176): Delivering pointer 0 > Window{4a7c2ad0 InputMethod paused=false} 08-01 10:55:33.823: I/KeyInputQueue(176): Enqueueing touch event1

Uncaught exception thrown by finalizer (will be discarded) , Android

元气小坏坏 提交于 2019-12-07 10:50:20
问题 In logcat I found these messages, my application runs correctly (No error/ No exception/ and correct result), but why these messages appears in log cat. I closed all cursors. And one more thing, Application goes a little bit slow to displaying activity( Which activity is listed in my logcat message), I think it takes that time to generate these log messages. What is solution for this. I/ActivityManager( 63): Starting activity: Intent { cmp=com.pankaj.myapp/.SelectedContactActivity (has extras