android-logcat

Over populating Logcat causes windows to freeze, until hard reboot is performed

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 02:18:37
The title speak for itself, but I would add some pointers I've noticed along the way. I would like anyone which also experience the end result while developing for Android to try to reproduce this and see if this scenario is really the case, and if someone have a solution, that would make me very happy :), it is extremely frustrating that I need to hard reboot my computer while developing... The crash happens when Logcat is over populated. By over populated I mean that from a point in time, if you would leave a device connected in debug mode for a while, and you would look at the Logcat view,

Rather odd behaviour of Log

橙三吉。 提交于 2019-12-05 02:12:30
问题 I wrote a very simple Android Activity: import android.os.Bundle; import android.app.Activity; import android.util.Log; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d("TAG", "onCreate() Log call 1"); Log.d("SMS", "onCreate() Log call 2"); Log.d("TEST", "onCreate() Log call 3"); finish(); } @Override protected void onDestroy() { Log.d("TAG", "onDestroy() Log call 1"); Log.d("SMS", "onDestroy(

Android Webview Unknown Error

最后都变了- 提交于 2019-12-05 01:57:33
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 currentUrl; private boolean exitConfirmation; private BroadcastReceiver completeReceiver = new

Does too many log writing decreases android application performance?

别来无恙 提交于 2019-12-05 00:54:16
I would to know whether logging can decrease application performance? Also, please give me some tips to increase android application performance. 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 removing calls to Log methods in your source files. You can disable debugging by removing the android:debuggable

How to identify where code is incorrect, if I get warning Converting to string: TypedValue?

雨燕双飞 提交于 2019-12-04 22:08:09
问题 Here is the extract from LogCat: 04-04 19:51:51.270: INFO/ActivityManager(57): Starting activity: Intent { cmp=com.example.app/.Preferences } 04-04 19:51:51.710: WARN/Resources(1081): Converting to string: TypedValue{t=0x10/d=0x0 a=-1} 04-04 19:51:51.740: WARN/Resources(1081): Converting to string: TypedValue{t=0x10/d=0x0 a=-1} 04-04 19:51:51.761: WARN/Resources(1081): Converting to string: TypedValue{t=0x10/d=0x79e a=-1} 04-04 19:51:51.800: WARN/Resources(1081): Converting to string:

What to do if manufacturer removed folders under /dev/log folder? [means No LogCat]

半世苍凉 提交于 2019-12-04 13:51:33
问题 I'm in trouble with my android device in which log folder under /dev is unreachable or maybe even does not exists. $ pwd pwd /dev $ cd log cd log cd: can't cd to log $ So LogCat is out-of-service and I cannot view device's stdout or stderr logs in DDMS. I googled a little bit and tried to find some information for about this problem: http://developer.android.com/guide/developing/tools/adb.html#alternativebuffers Viewing stdout and stderr topic seemed to be useful but this thread says it is

Examine logs from the past with logcat?

纵然是瞬间 提交于 2019-12-04 12:49:37
I'd like to examine stack traces from the last hours. I haven't found a proper logcat command. Does Android "forget" those logs? First story: When I find an unhandled exception in my co-workers Iphone App, he connects the iphone to his computer and reads the stack trace into x-code. X-Code also visualizes the exception in a nice way. Is there a smth. similar in Android? You probably won't be able to see those logs from the past hours. Imagine that your phone stores all logs, how much space will it consume in a couple of days? So, this is what I do: I'm in the autobus, and suddenly the app I'm

Could not find actionbarsherlock.apk

旧街凉风 提交于 2019-12-04 12:19:17
I'm trying to run my app on a real device from Eclipse. After adding actionbarsherlock as a reference, I can't get rid of this error: Could not find actionbarsherlock.apk . Here is the full console output: [2013-05-24 16:10:14 - MyApp] ------------------------------ [2013-05-24 16:10:14 - MyApp] Android Launch! [2013-05-24 16:10:14 - MyApp] adb is running normally. [2013-05-24 16:10:14 - MyApp] Performing com.myapp.activities.StopSelection activity launch [2013-05-24 16:11:26 - MyApp] Uploading MyApp.apk onto device '0A3AA80D1402500E' [2013-05-24 16:11:26 - MyApp] Installing MyApp.apk... [2013

How to write log to sd card in Android? [duplicate]

旧街凉风 提交于 2019-12-04 09:21:41
This question already has an answer here: How do I write the exception from printStackTrace() into a text file in Java? 5 answers My program is crashing in device. I want to exactly catch the log of my program while running in my device .i.e I want to write the log to my sd card, up to the point of crashing. How can I achieve this? Shini Try this Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this)); // add this to your activity page public class ExceptionHandler implements java.lang.Thread.UncaughtExceptionHandler { private final Context myContext; private final String LINE

Using LogCat on JellyBean

社会主义新天地 提交于 2019-12-04 03:42:06
I have a bug that happens very randomly, so I rely on a LogCat monitoring app I bought off the Play Store, to see the exceptions thrown on my device when it happens. Since using Jelly Bean, I'm seeing no logging. I've read that, with Jelly Bean, an app can only see the LogCat output of itself. So outside of rooting my device, is there any way to read the LogCat output of my app on my phone directly? I know I can use Eclipse, but, like I said, it happens so randomly and I can't manually recreate it. So outside of rooting my device, is there any way to read the LogCat output of my app on my