logcat

Getting information from logCat window

会有一股神秘感。 提交于 2019-12-13 03:43:12
问题 How to get information from the LogCat window? 回答1: If you add something like Log.v("tag", "value"); in your code, You can see that in LogCat window. 回答2: You can click Windows ->ShowView->Other-> Android ->Logcat Refer to Images 1 and Images 2 and and in the code use v -> Verbose and d -> Debug and E-> Error I -> Information, W -> Warning 来源: https://stackoverflow.com/questions/5323454/getting-information-from-logcat-window

LogCat output debugging help

二次信任 提交于 2019-12-13 03:07:03
问题 My Logcat output for my program failing. It apparently can't access some kind of SD card, but I'm using the emulator. I'm on x64 windows 7, and I ran as administrator. 08-29 19:16:29.360: ERROR/AndroidRuntime(707): FATAL EXCEPTION: GLThread 10 08-29 19:16:29.360: ERROR/AndroidRuntime(707): java.lang.ExceptionInInitializerError 08-29 19:16:29.360: ERROR/AndroidRuntime(707): at com.wickeyware.zombiearcher.screen.TitleScreen.render(TitleScreen.java:80) 08-29 19:16:29.360: ERROR/AndroidRuntime

Eclipse opens wrong source file on exception

喜夏-厌秋 提交于 2019-12-12 22:55:58
问题 I have several Android projects in an Eclipse workspace: a stand-alone application project with a class my.package.Foo a library project with a different class my.package.Foo two application projects that depend on the library project and contain no source code The problem comes when working with one of the applications built on top of the library project. When it crashes (sadly, a frequent occurrence), I double-click on a line of the stack trace in the logcat to go to the relevant source.

Android studio “Clear All” in log cat, logs still come back when changing log level filter

自古美人都是妖i 提交于 2019-12-12 15:41:49
问题 In LogCat, when I click the "clear all" button, it appears to clear all of the logs. However, if I change the log level, and come back to the previous log level, all of the logs have returned. For example, I'm looking at "Verbose". I choose "Clear all". The log clears. I switch over to "Debug". I switch back to "Verbose", now all of the Verbose logs that I thought I cleared, have now come back. It displays everything since I opened Android Studio. Additionally, the same issue occurs if I

Android how to view long string in logcat

怎甘沉沦 提交于 2019-12-12 13:58:51
问题 I have a HashMap<String, LinkedHashMap<String,String> that is fairly long (not an issue) and I'm trying to make sure things look correct before I use the data inside it. To do this I'm trying to just attempting to do this Log.v("productsFromDB",products.toString()) but in the LogCat It shows about 1/3 of it. Is there a way to output the entire map? 回答1: Logcat can only show about 4000 characters. So you need to call a recursive function to see the entire hashmap. Try this function: public

Start Another Activity from onCreate() in MainActvity?

梦想的初衷 提交于 2019-12-12 11:16:37
问题 The problem I am having is that the onCreate() method within my MainActivity cannot seem to start another activity. I have code working so that when I click a button, my "AboutActivity" is started. However, I want to make it so that "AboutActivity" is started as soon as onCreate() in the MainActivity finishes. The program gets caught up at a blank screen when I run it while trying to start the "AboutActivity" from onCreate(). The code posted is a simplified version of the problem. In essence,

MediaRecorder crashes when record a second audio clip

人盡茶涼 提交于 2019-12-12 10:55:45
问题 I am trying to record audio clips with MediaRecorder, but I keep getting these errors in my Logcat when I start, stop, and start again; the activity would also close: INFO/DEBUG(1285): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** INFO/DEBUG(1285): Build fingerprint: 'LGE/thunderg/thunderg/thunderg:2.2.1/FRG83/eng.nikech.choi.20110126.134422:user/release-keys' INFO/DEBUG(1285): signal 11 (SIGSEGV), fault addr 00000010 INFO/DEBUG(1285): r0 00000000 r1 00000000 r2 a930cc98 r3

How to collect LogCat messages in an Android application

谁都会走 提交于 2019-12-12 09:12:42
问题 I have an application and I'd like to collect the LogCat messages of a specified level and tag. Can I somehow get the accumulated messages at some point? I don't want to collect the messages one by one, it should be the sum of them like when I use adb to read the actual log. Is this possible? 回答1: Try this: Note that in Android 4 you will only see the log messages that were written by your own app unless you have root access. public static String getLog(Context c) { try { Process process =

Android OutOfMemory within different devices ?

二次信任 提交于 2019-12-12 05:59:35
问题 I have an app that deals with images, it works fine with some devices ex. HTC ONE X, and others dont ex. GALAXY NOTE, the list is big IDK the problem exatcly cuz it works in some, and it dont in others. also it doesnt work on the emulator the default one but a small one it does work this is the logcat I get 08-15 18:30:39.070: I/dalvikvm-heap(334): Clamp target GC heap from 25.723MB to 24.000MB 08-15 18:30:39.090: D/dalvikvm(334): GC_FOR_MALLOC freed <1K, 51% free 2672K/5379K, external 19015K

app crash after i select the 3rd function [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:54:47
问题 This question already has answers here : java.lang.OutOfMemoryError: bitmap size exceeds VM budget - Android (13 answers) Closed 5 years ago . i just have a crash on my app. but I don't know how to read my logcat. can someone guide me? 12-09 19:02:36.877: D/skia(11797): --- allocation failed for scaled bitmap 12-09 19:02:36.877: D/AndroidRuntime(11797): Shutting down VM 12-09 19:02:36.877: W/dalvikvm(11797): threadid=1: thread exiting with uncaught exception (group=0x417a5da0) 12-09 19:02:36