logcat

Could not find class 'android.graphics.drawable.RippleDrawable' error

瘦欲@ 提交于 2019-12-04 19:35:00
I tried to run it on my phone but I got only a white screen. Can't figure out where is mistake here... Java package make.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final TextView text = (TextView) findViewById(R.id.textView); text.setOnClickListener(new View.OnClickListener() { @Override public void

Android Eclipse Logcat messages: How does ADT get the Application column?

那年仲夏 提交于 2019-12-04 18:51:39
I ran Logcat on a command window and tried all possible formats: brief — Display priority/tag and PID of the 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. thread — Display the priority, tag, and the PID and TID. threadtime — Display the date, invocation time, priority, tag, and the PID and TID. long — Display all metadata fields and separate messages with blank lines. I could not

LogCat not displaying TAG “SMS”

徘徊边缘 提交于 2019-12-04 18:27:20
问题 @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.e("SMS","Hello World"); //not showing Log.v("SMS","Hello World"); //not showing Log.i("SMS","Hello World"); //not showing Log.d("SMS","Hello World"); //not showing Log.i("sms","Hello World"); //showing } Why the Logging in the Logcat is not working for some line in the above code?? 回答1: There are some tags that don't go to the default buffer, as has been stated.

How to collect LogCat messages in an Android application

好久不见. 提交于 2019-12-04 17:22:34
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? 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 = Runtime.getRuntime().exec("logcat -d"); BufferedReader bufferedReader = new BufferedReader(new

How to filter only my application log in IntelliJ's logcat? [duplicate]

五迷三道 提交于 2019-12-04 16:16:43
问题 This question already has answers here : How to filter Android logcat by application? [duplicate] (27 answers) Closed 6 years ago . On IntelliJ, i'm trying to read the logcat for seeking errors. The problem is that all the applications' log are present in the 'Android' Window. How to only display the log that is relevant ? I'm not looking for tags since i want to view Exception throws, Segfaults from JNI, etc. Thanks ! 回答1: You can filter by the process ID (PID): The only drawback is that PID

Android ADB常用命令使用

烂漫一生 提交于 2019-12-04 15:42:29
Android SDK: adb shell 命令的使用(am、pm、wm、screencap、monkey等) https://blog.csdn.net/xietansheng/article/details/86675136 Android SDK: adb 常用命令的使用(无线连接、端口转发、文件传输、APK安装卸载、Logcat日志) https://blog.csdn.net/xietansheng/article/details/85472666 来源: https://www.cnblogs.com/tc310/p/11871835.html

Programmatically filtering logcat for my application. not working for me

≯℡__Kan透↙ 提交于 2019-12-04 15:38:12
In an android app I am trying to get my application log messages and saving them to file I am using the code below. I am using a different TAG for each of my class and there are several of them. doing logcat -d gives me all irrelevant messages.. putting my package name like logcat -d myapp.com:I *:S does not work the results are empty but if I do logcat -d MYCLASS1TAG:I MYCLASS2TAG *:S then it works, but I have many classes.. how can I just put my package name and get results ..?? try { Process process = Runtime.getRuntime().exec("logcat -d"); BufferedReader bufferedReader = new BufferedReader

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

Android Studio Logcat colors best practice

时光总嘲笑我的痴心妄想 提交于 2019-12-04 07:35:15
问题 It is really hard to follow up Android logcat output all in a same color. is there any best practice for changing different logs color? 回答1: I know that using solid black color logcat in Android Studio is awful!!! Here is my best practice colour codes that you can use for changing the face of you logcat in Android Studio to make it more useful. Go to Android Studio Preferences and search for logcat and 'Save As' your own scheme: Assert : 9C27B0 Debug : 2196F3 Error : F44336 Info : 4CAF50

NumberFormatException invalid int “”

↘锁芯ラ 提交于 2019-12-04 06:23:51
问题 I am trying to take the input values from EditText and I want to save it to sqlite Database. I dont know how to use the logcat [also please explain how can I read the errors from the LogCat]. MainActivity.java: package com.example.database; import android.support.v7.app.ActionBarActivity; import android.text.Editable; import android.app.Activity; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import