android-logcat

Android phone “DCD ON” error, constantly running in Logcat

﹥>﹥吖頭↗ 提交于 2019-12-11 02:15:22
问题 I am trying to run and test my app, but in my LogCat (besides the usual stacktrace from my app), I get all this weird extra red errors, and have no idea what it is from. It is frustrating because it keeps adding more lines, when I am just trying to find my app errors, so it's hard to scroll to find my app errors. Even when I am not pressing anything on my phone, it keeps adding these weird DCD ON lines and more... Any idea how to stop them from being my LogCat? I am using a Samsung Galaxy 5.

Programmatically get log cat data

北战南征 提交于 2019-12-11 02:12:56
问题 i want to get logcat data programmatically i used the below code StringBuilder debuglog=new StringBuilder(); try { Process process = Runtime.getRuntime().exec("logcat -d"); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); String line; while ((line = bufferedReader.readLine()) != null) { debuglog.append(line); debuglog.append("\r\n"); } } catch (IOException e) { e.printStackTrace(); } Above code is working fine This line "logcat -d " shows -d

Retrofit2 HttpLoggingInterceptor Logcat

烂漫一生 提交于 2019-12-10 21:44:37
问题 Probably a novice question but I'm wondering where I actually catch the logs in log cat. Is there a particular place I put a log, a special regex to use etc. This is what my interceptor looks like: HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); interceptor.setLevel(HttpLoggingInterceptor.Level.BODY); OkHttpClient okClient = new OkHttpClient.Builder().addInterceptor(interceptor).build(); // Retrofit setup Retrofit client = new retrofit2.Retrofit.Builder() .baseUrl(BASE_URL)

What's the simplest way to see logging from a Qt app on Android in adb logcat output?

假如想象 提交于 2019-12-10 21:09:29
问题 NB I am not a QtCreator user. I build android apps in build scripts with qmake, make and androiddeployqt, and deploy them to the device with adb install. I'd like to be able to see the output of qDebug, qInfo etc, and also any qml conole.log output and any other chatter from the QML engine, in abd logcat output. But in a vanilla build of a Qt app for Android, any such messages just seem to be blackholed (or at least I have no idea where they're going). I have had some success by the

Reading logcat on android from c#

放肆的年华 提交于 2019-12-10 18:37:44
问题 I am looking into making a c# program that will read in the logcat output from an android device and read it in to the c# program. Initially it should do this while the phone is connected and it shouldn't require a specific app on the phone to be installed for the c# program to be able to retrieve the logcat output. Also the phone shouldn't require root access. Is this something that is possible, I can't find anything on Google that says its possible but thought I'd ask on here in case

Android app crashes if installed as apk, works if runned trough Android Studio

╄→гoц情女王★ 提交于 2019-12-10 18:34:21
问题 I made an app in Android Studio 2.1.3, that of couse I have tested both in (different) emulators and my own phone (Xiaomi Redmi Note 3, Android 5.0.2 LRX22G). When I gave the apps to a few friends to test they all said the same thing : the app starts normally, they select the activity that they are interested in, they input the data in the textfields and the moment they press the button (that supposes to make some math) to receive the math answers, the app stops and returns to the "main"

RecognizerIntent.ACTION_RECOGNIZE_SPEECH blocked when a tap occurs

旧街凉风 提交于 2019-12-10 17:15:07
问题 In my main activity I launch a new Intent: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "What would you like to find?\n For example \"Open heart surgery\""); startActivityForResult(intent, SPEECH_REQUEST); Then I retrieve the keywords that were spoken here: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == SPEECH_REQUEST && resultCode == RESULT_OK) { List<String>

Logcat showing “Shutting down VM”

拜拜、爱过 提交于 2019-12-10 15:34:34
问题 I'm trying to connect to a server and print the responses. Weird thing is that when I click on the button in my activity that starts the connection, it force closes immediately. After looking in logcat , what I see is that VM is shutting down. I do see that there appears to be someone that saw a similar problem as me: The logcat in android shows simply shutting down the VM? Unfortunately, I don't think the problem was actually answered, and it really puzzles me. Stack trace: 03-06 20:12:47

“The real object has been deleted” in logcat

谁说我不能喝 提交于 2019-12-10 14:09:30
问题 This question was previously asked Here, but not answered, And failed to find any article on the web that explains this issue. My app is working fine, but at some point when i startActivityForResult i see 3 logs of webcoreglue: The real object has been deleted . Now allegedly my app is all ok so far, and i have no idea what and why this message is being logged. Could someone explain why and when this is happening and what does it mean, before i try and find out what's wrong with my app? EDIT:

Attempt to invoke virtual method 'int java.lang.String.hashCode()'

一世执手 提交于 2019-12-10 13:33:50
问题 I'm trying to load images from URL into girdview using Volley Library. For this I'm following this tutorial. When I run my project, it collects all URLs from server database and then store in arraylist. But doesn't displays images. And I am getting java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference error. It doesn't even point to any line number of code where I'm getting this error. See below Logcat Output : java.lang