logcat

Android java.lang.NullPointerException: println needs a message

我的梦境 提交于 2019-12-10 14:45:33
问题 I have a problem with my app when I try to login. In fact, if I register (if the checkbox remerberMe isChecked() on register action, at the next connection the main activity is displayed otherwise the login activity appears) first, it works fine. However, the Login Activity doesn't work when it's called on the next connection after register action. Login Activity public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.login); setTitle(R

error opening trace file: No such file or directory (2)

♀尐吖头ヾ 提交于 2019-12-10 14:12:23
问题 I am getting the above error: error opening trace file: No such file or directory (2) when I run my android application on the emulator. Can someone tell me what could be the possible reason for this? I am using android-sdk-20 and below lines are added to AndroidManifest.xml <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" /> I have also added the line: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> since I thought that there may be some issue

Android logcat errors TundConnector and NetlinkEvent

有些话、适合烂在心里 提交于 2019-12-10 13:50:28
问题 I just noticed in my LogCat I am getting consistent errors (about every second) and wondering if anyone could shed some light on the problem? Droid X2 w/ newest update. 10-21 14:52:49.590: ERROR/TundConnector(1482): Communications error 10-21 14:52:49.590: ERROR/TundConnector(1482): java.io.IOException: No such file or directory 10-21 14:52:49.590: ERROR/TundConnector(1482): at android.net.LocalSocketImpl.connectLocal(Native Method) 10-21 14:52:49.590: ERROR/TundConnector(1482): at android

Failed to ResTable::remove()

拈花ヽ惹草 提交于 2019-12-10 12:29:03
问题 I'm having a problem with my android project. When I launch my app in Eclipse, I got the following error in LogCat: 0x5ad3e5e0: Failed to ResTable::remove() cookie=0x4,not last table. mHeader.size() = 5. Warning for spontaneous crashes when the garbage collector runs. Error removing runtimes skin resource (cookie 0x4) I don't know what it means or where it is coming from. Everything still works fine, but the error message appears every time. 回答1: You can clear cache / data per application

adb常用命令

落花浮王杯 提交于 2019-12-10 11:54:03
Android Debug Bridge(Android 调试桥) 针对移动端 Android 的测试, adb 命令是很重要的一个点,必须将常用的 adb 命令熟记于心, 将会为 Android 测试带来很大的方便,其中很多命令将会用于自动化测试的脚本当中。 adb 是一个 C/S 架构的命令行工具,用于通过电脑端与模拟器或者真实设备交互。在某些特殊的情况下进入不了系统,adb就派上用场了,主要由 3 部分组成: · 运行在 PC 端的 Client : 可以通过它对 Android 应用进行安装、卸载及调试 · 运行在 PC 端的 Service : 其管理客户端到 Android 设备上 adb 后台进程的连接 · 运行在 Android 设备上的 adb 后台进程 adb 服务启动后,Windows 可以在任务管理器中找到 adb.exe 这个进程 通过adb操作android设备 连接上数据线,然后把手机开发者模式打开,打开usb调试。 在配好环境变量的前提下,在命令窗口当中输入 adb help 或者直接输入 adb ,将会列出所有的选项说明及子命令。 在开发或者测试的过程中,我们可以通过 adb 来管理多台设备,其一般的格式为: adb [-e | -d | -s <设备序列号>] <子命令> adb devices 获取设备列表及设备状态 adb get-state

Save app event (logcat) in file on sd

▼魔方 西西 提交于 2019-12-10 11:45:36
问题 I want to save my app logcat events in a text file on sd card. my alarming app work properly in my and my friends devices, but other have error on my app. for example they say alarms in app are in wrong time, but i dont see this error in my and my friends devices. Because of this issue and other issues, i want save all events logcat related my app, atomatically. so they send log file to me to solve issues. how can i do this? thanks sorry for my bad english 回答1: You can get logcat via the

How can I print the full logcat history in a TextView in Android?

ぐ巨炮叔叔 提交于 2019-12-10 11:43:49
问题 I'm using logcat to log messages in my Android application, and I'd like to be able to access these messages and show them in a TextView in a DialogFragment. The list of messages is very inconsistent and changes each time I open and close the dialog. It shows the full history once, and then the next time it erases, and sometimes it shows some more messages. Is there anything that I can do to show all the messages (for the run) each time I open the dialog? Am I running the process at the wrong

What the logcat message: “E/MoreInfoHPW_ViewGroup(2905): Parent view is not a TextView” means?

痞子三分冷 提交于 2019-12-10 02:23:11
问题 I'm developing an android app, and I put a filter in my logcat to filter logs by my application package name. Unfortunately, this error message always appear and I don't know how to fix it. My app works well, without any problem or crash. However I want to fix this error log. 07-15 11:14:48.808: E/MoreInfoHPW_ViewGroup(2905): Parent view is not a TextView 回答1: you can ignore this , it's a known issue with Samsung models. 来源: https://stackoverflow.com/questions/24760745/what-the-logcat-message

Log.e does not print the stack trace of UnknownHostException

偶尔善良 提交于 2019-12-10 02:13:58
问题 Calling Log.e(TAG, "some message", e) where e is an UnknownHostException , does not print the stack trace on the logcat. 回答1: Since May 20, 2011, there is a change in the Log class, such that UnknownHostException exceptions are not printed. This is to reduce the amount of log spew that apps do in the non-error condition of the network being unavailable. https://github.com/android/platform_frameworks_base/commit/dba50c7ed24e05ff349a94b8c4a6d9bb9050973b 回答2: The e you are including is useless,

Programmatically filtering logcat for my application. not working for me

故事扮演 提交于 2019-12-09 20:06:36
问题 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 {