logcat

How to filter logcat to remove irrelevant statements

风流意气都作罢 提交于 2021-02-16 18:22:45
问题 I'm new to Android Studio, using latest version, and trying to code a basic calculator app. For some reason, my logcat is full of 2021-01-11 14:38:35.288 6938-6938/? W/cmd: Can't find service car_service This is really annoying for debugging. How can I get rid of it ? 回答1: I'll change my comment to an answer, seeing as though it actually helped: click on logcat at the bottom of android studio, then (i'm assuming) yours will show no filters , change that dropdown to show only selected

unknown sqlite db error

我的梦境 提交于 2021-02-10 06:07:27
问题 when trying to insert data into my sqlite db I receive a logcat error "unknown database logindata: , while compiling:". the error message sounds straight forward but I can locate where the issue is. in my DB class or the activity which is inserting the data. error message: unknown database logindata: , while compiling: create table if not exists logindata.db (_id integer primary key autoincrement,username text not null,password text not null); database: public class LoginDB extends

What is an InterruptedException in Java?

拥有回忆 提交于 2021-02-08 11:21:25
问题 I have seen many times in my code that I get an Interrupted Exception. What is that, and how do I fix it? 回答1: Since I don't know how much you know about Java, how java works exactly and what's concurrency, I'll try to explain as much as possible with nearly no background information needed. At first we're going to take a look at Oracle's documentation of the InterruptedException. Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or

What is an InterruptedException in Java?

醉酒当歌 提交于 2021-02-08 11:21:12
问题 I have seen many times in my code that I get an Interrupted Exception. What is that, and how do I fix it? 回答1: Since I don't know how much you know about Java, how java works exactly and what's concurrency, I'll try to explain as much as possible with nearly no background information needed. At first we're going to take a look at Oracle's documentation of the InterruptedException. Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or

For a native android application that seg faults, why is there no stack trace in logcat?

◇◆丶佛笑我妖孽 提交于 2021-02-07 09:42:00
问题 Pretty self explanatory. I compiled a native c++ exe using the ndk. When I run the app, it gets a SIGSEGV, seg faults and exits. There is no stack trace or cpu context in the logcat. Why? Any suggestions on how to fix it? 回答1: there are two tools you can use to debug your sigsev . ndk-stac k and arm-linux-androideabi-addr2line located into your $NDK dir.The first help you to filter the stacktrace and addr2line translates program addresses into file names and line num. Check into your $NDK dir

App install via Android Studio starts at boot but not if installed as an .apk

余生颓废 提交于 2021-02-05 11:43:52
问题 I've got an app with the following in the manifest <receiver android:name="com.redacted.BroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE"></action> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> <activity android:name="com.redacted.activity.UserLaunch" android:label="@string/app_name" android:launchMode="standard" android:clearTaskOnLaunch="true" android:enabled="true"> <intent-filter> <action android:name

unfortunately application has stopped Xamarin C# Android

别等时光非礼了梦想. 提交于 2020-06-27 21:56:55
问题 Using Windows 10, Visual Studio with Xamarin C# Android. Getting "couldn't connect to logcat get process id returned 0" and "unfortunately application has stopped." How can i resolve this? Thanks. http://i.stack.imgur.com/j2hrV.jpg 回答1: Go to Your Android "Project Properties"in Visual Studio. In "Android Option" uncheck "Use Shared Runtime" from "packaging". It will deploy application as well run application on your device. 来源: https://stackoverflow.com/questions/32808253/unfortunately

unfortunately application has stopped Xamarin C# Android

旧街凉风 提交于 2020-06-27 21:56:35
问题 Using Windows 10, Visual Studio with Xamarin C# Android. Getting "couldn't connect to logcat get process id returned 0" and "unfortunately application has stopped." How can i resolve this? Thanks. http://i.stack.imgur.com/j2hrV.jpg 回答1: Go to Your Android "Project Properties"in Visual Studio. In "Android Option" uncheck "Use Shared Runtime" from "packaging". It will deploy application as well run application on your device. 来源: https://stackoverflow.com/questions/32808253/unfortunately

unfortunately application has stopped Xamarin C# Android

那年仲夏 提交于 2020-06-27 21:56:21
问题 Using Windows 10, Visual Studio with Xamarin C# Android. Getting "couldn't connect to logcat get process id returned 0" and "unfortunately application has stopped." How can i resolve this? Thanks. http://i.stack.imgur.com/j2hrV.jpg 回答1: Go to Your Android "Project Properties"in Visual Studio. In "Android Option" uncheck "Use Shared Runtime" from "packaging". It will deploy application as well run application on your device. 来源: https://stackoverflow.com/questions/32808253/unfortunately