logcat

Android console displays: W/art: Attempt to remove non-JNI local reference

雨燕双飞 提交于 2020-01-12 04:03:05
问题 I've just setup my first Cordova project and installed OneSignal push notifications. This is all working as I expect, however the Android Developer Tools are showing this in the console: W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference,

Android SoftKeyboardDetect: Ignore this event what does it mean?

拈花ヽ惹草 提交于 2020-01-11 12:04:41
问题 I see this debug message frequently in LogCat. When doing swipe or rotating the device for example. The emulator doesn't react to the events then. What does it mean? In need to test rotation on the emulator but on some versions, when I press CTRL F12 or CTRL F11 nothing happens (well, the device rotates as a whole but not the screen) and I see this message in log. I don't find anything with google either... Ok, it's PhoneGap specific. I found something in the source code of PhoneGap: /** * We

Android SoftKeyboardDetect: Ignore this event what does it mean?

只愿长相守 提交于 2020-01-11 12:04:06
问题 I see this debug message frequently in LogCat. When doing swipe or rotating the device for example. The emulator doesn't react to the events then. What does it mean? In need to test rotation on the emulator but on some versions, when I press CTRL F12 or CTRL F11 nothing happens (well, the device rotates as a whole but not the screen) and I see this message in log. I don't find anything with google either... Ok, it's PhoneGap specific. I found something in the source code of PhoneGap: /** * We

android.view.ViewRoot$CalledFromWrongThreadException:

十年热恋 提交于 2020-01-11 04:14:08
问题 I'm getting an error in my logcat stating: java.net.UnknownHostException: apps.example.com 09-13 14:57:28.970: W/System.err(3823): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Has anyone seen this before? I'm not sure exactly what's causing the issue. FULL LOGCAT: 09-13 14:57:27.085: D/dalvikvm(3823): GC_EXTERNAL_ALLOC freed 46K, 43% free 3084K/5379K, external 0K/0K, paused 77ms 09-13 14:57:27.165: D/dalvikvm

adb命令对安卓apk的测试

为君一笑 提交于 2020-01-10 08:09:57
adb命令对安卓apk测试 adb的全称为Android Debug Bridge,就是起到调试桥的作用,是客户端测试常用的辅助工具。借助adb工具,我们可以管理设备或手机模拟器的状态。还可以进行很多终端操作,如安装软件、卸载软件、系统升级、运行shell命令等。adb就是Android终端(如手机/机顶盒)与PC端的桥梁,可以让用户在电脑上对手机进行全面的操作、记录终端操作日志。同时还可以使用adb命令在真机上对安卓包进行压测、崩溃日志查看等。 1 环境安装及配置 1.1 安装sdk环境 直接复制压缩包并解压到电脑本地后,包含以下文件 1.2 path环境配置 选中计算机–>点击右键–>选择【属性】–>【高级系统设置】–>【环境变量】,新建/修改变量 添加以下系统变量信息 ANDROID_HOME:E:\AppAuto\Sdk(sdk的安装目录) path:;%ANDROID_HOME%;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools; 1.3 验证android环境 运行cmd 输入“android -h”,出现下图即环境搭建成功 1.4 验证adb运行环境 步骤1.1中的压缩包是包含adb的运行程序的,先在cmd中运行adb检查是否可用,出现下图即环境搭建成功 如果运行不成功,单独复制adb的运行程序到C:\Windows

eclipse信息输出区没有logcat的解决方法

血红的双手。 提交于 2020-01-07 16:06:59
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 有时候会莫名其妙的就找不到输出信息区的LogCat日志了,很郁闷。 解决方法:Eclipse菜单栏中【Windows--->Show Views】弹层中选择LogCat,如果找不到则点击最下方的“Other”选项, 会弹出一个【Show Views】窗口,选择Android并展开,选择LogCat,点击OK 如图: 如此处理之后Eclipse的输出信息区就会显示Logcat的日志了。 Android 的调试信息分为五类: VERBOSE 类型调试信息,verbose啰嗦的意思 DEBUG 类型调试信息, debug调试信息 INFO 类型调试信息, 一般提示性的消息information WARN 类型调试信息,warning警告类型信息 ERROR 类型调试信息,错误信息 Android Log提供添加以上调试信息对应的方法 Log.v(String tag, String msg); //VERBOSE Log.d(String tag, String msg); //DEBUG Log.i(String tag, String msg); //INFO Log.w(String tag, String msg); //WARN Log.e(String tag, String msg); //ERROR

Display stack trace in Android Studio - it's disappeared

怎甘沉沦 提交于 2020-01-06 19:51:12
问题 Very dumb, very basic question, but this has been frustrating the hell out of me, so here goes. My stack trace has disappeared in Android Studio. All Logcat shows is crap like this: 8:34:36 PM Gradle build finished in 16 sec 8:41:30 PM Gradle build finished in 10 sec 8:43:05 PM Gradle build finished in 8 sec 8:43:07 PM Session 'app': running 8:45:18 PM Gradle build finished in 10 sec 8:45:20 PM Session 'app': running No stack trace, no nothing, and I know for sure that there are exceptions I

Can you set textview text within a thread?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 15:43:44
问题 What I need it to have it once the app stops reciving text from the server saying that it is now disconected I need to set the button to say that it is disconnected, this is what I have right now (this is in a while loop I just didnt post all of the code) Thread.sleep(10); counter++; if (counter >= 100) { Log.d("ClientActivity","send S"); counter = 0; out.println("S"); A2MCString = in.readLine(); Log.d("ClientActivity","got " + A2MCString); if (A2MCString == null) { connected = false; Log.d(

Scanning radio syslogs in Android

我们两清 提交于 2020-01-06 07:26:53
问题 I am trying to extract some information from Android (e.g. LAST_CALL_FAIL_CAUSE). Some of the information I found on Google suggests scanning the radio logs for this. However, I am not really sure how to scan these logs or how to pro grammatically access them. I searched for this on Google but couldnt find anything useful. Any ideas ? 回答1: LAST_CALL_FAIL_CAUSE belongs to the radio log, the meaning of the value defined by the vendor of modem. eg, LAST_CALL_FAIL_CAUSE = 16 means call failed

Error coming while running android application

主宰稳场 提交于 2020-01-04 06:51:29
问题 I have created an android application using eclipse but application is not running on AVD it is saying "Unfortunately has stopped working" Log cat message is given below - 07-29 04:59:50.789: W/dalvikvm(784): threadid=1: thread exiting with uncaught exception (group=0x414c4700) 07-29 04:59:50.808: E/AndroidRuntime(784): FATAL EXCEPTION: main 07-29 04:59:50.808: E/AndroidRuntime(784): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.androidlove/com.example