android-logcat

Filter log messages by PID or application package in Android

六月ゝ 毕业季﹏ 提交于 2021-02-18 11:37:25
问题 I understand that to filter Android log messages we can use something like adb logcat ActivityManager:I MyApp:D *:S But, in my application, I'm using different TAGS for different activities and I want to filter all the logs of this application only. What's the best way to do it? Do I need to specify all the tags in the command? Or using a common tag across the application, the only other alternative? While looking at log messages in Eclipse, I notice that there is a column named PID and

My app crashes when I try to navigate, can't seem to find issue

本小妞迷上赌 提交于 2021-02-05 12:17:36
问题 I can't seem to find whats wrong with my application... Here is the logcat: 11-05 16:37:30.030 7867-7867/com.capstone.miguel.studentassistant E/AndroidRuntime: FATAL EXCEPTION: main Process: com.capstone.miguel.studentassistant, PID: 7867 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.capstone.miguel.studentassistant/com.capstone.miguel.studentassistant.user_sign.LoginActivity}: java.lang.ClassCastException: android.support.design.widget.TextInputEditText cannot be

Logs/logcat not working in BroadcastReceiver

戏子无情 提交于 2021-02-02 09:30:42
问题 I have a BroadcastReceiver and it there is some problem. The Toast message is showing, and the logcat message is appearing with the command line logcat tool, but not in the Android studio Logcat display. Why? I have already tried android:debuggable="true" and anything has not changed. public class AlarmReceiver extends BroadcastReceiver { private String filePath; private Ringtone ringtone; @Override public void onReceive(Context context, Intent intent) { Log.d("RECEIVE", ""); Bundle extras =

How to filter multiple words in Android Studio logcat

ぃ、小莉子 提交于 2020-02-18 05:45:29
问题 I want to see just a couple of words in logcat. In other words, just a given tags. I tried to enable Regex and type [Encoder|Decoder] as filter, but it doesn't work. 回答1: You should use a grouping construct: (Encoder|Decoder) Actually, you can just use Encoder|Decoder If you use [Encoder|Decoder] , the character class is created that matches any single character E , n , c ... | , D ... or r . See Character Classes or Character Sets: With a "character class", also called "character set", you

How to filter multiple words in Android Studio logcat

孤者浪人 提交于 2020-02-18 05:45:12
问题 I want to see just a couple of words in logcat. In other words, just a given tags. I tried to enable Regex and type [Encoder|Decoder] as filter, but it doesn't work. 回答1: You should use a grouping construct: (Encoder|Decoder) Actually, you can just use Encoder|Decoder If you use [Encoder|Decoder] , the character class is created that matches any single character E , n , c ... | , D ... or r . See Character Classes or Character Sets: With a "character class", also called "character set", you

How fix this: on logcat -->> error loading /system/media/audio/ui/Effect_Tick.ogg??

谁说胖子不能爱 提交于 2020-01-29 12:16:27
问题 I have a problem: error loading /system/media/audio/ui/Effect_Tick.ogg It's shown when I click navdraw icon. Anybody can help me?? This is errors on logcat: 04-20 01:42:11.240: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.251: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.251: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.280: E/SoundPool(639): error loading /system/media

How fix this: on logcat -->> error loading /system/media/audio/ui/Effect_Tick.ogg??

*爱你&永不变心* 提交于 2020-01-29 12:12:32
问题 I have a problem: error loading /system/media/audio/ui/Effect_Tick.ogg It's shown when I click navdraw icon. Anybody can help me?? This is errors on logcat: 04-20 01:42:11.240: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.251: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.251: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.280: E/SoundPool(639): error loading /system/media

How fix this: on logcat -->> error loading /system/media/audio/ui/Effect_Tick.ogg??

霸气de小男生 提交于 2020-01-29 12:12:06
问题 I have a problem: error loading /system/media/audio/ui/Effect_Tick.ogg It's shown when I click navdraw icon. Anybody can help me?? This is errors on logcat: 04-20 01:42:11.240: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.251: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.251: E/SoundPool(639): error loading /system/media/audio/ui/Effect_Tick.ogg 04-20 01:42:11.280: E/SoundPool(639): error loading /system/media

What is the meaning of “avc: denied { read } for name…” line in logcat? [duplicate]

血红的双手。 提交于 2020-01-24 12:54:26
问题 This question already has answers here : SElinux Android message interpretation (2 answers) Closed 2 years ago . I am wondering about avc: denied messages in my logcat . W/RenderThread: type=1400 audit(0.0:631436): avc: denied { read } for name="perf_ioctl" dev="proc" ino=4026533695 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0 What is the meaning of this? 回答1: It's depends of SELinux restrictions. You cannot do so much to avpoid it. In easy

Execute shell commands and get output in a TextView

徘徊边缘 提交于 2020-01-22 15:05:47
问题 I want to execute some shell commands and get the output in a TextView . The command may have a continuous output like ping or logcat . Also, the TextView should scroll automatically as the command output is added in real-time. In order to do so, I have done this: package com.example.rootapp; import java.io.DataOutputStream; import java.io.InputStream; import android.app.Activity; import android.os.Bundle; import android.text.method.ScrollingMovementMethod; import android.widget.TextView;