问题标签 [nexus-5]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - Chrome devTools 不再看到用于调试的 USB 设备
昨天,我插入我的 Nexus 5 来检查移动 Web 开发,就像我几乎每天都做的那样。当我转到“chrome://inspect”时,有一个感叹号说我需要更新 chrome,并且在我这样做之前不允许我检查任何设备(几天前它一直运行良好)。
所以,我让它在我的桌面上升级到 chrome 到 39.0.2171.65。更新后,我去了 chrome://inspect,你瞧,我得到了可怕的“没有检测到设备......”。因此,我经历了从 USB 拔下手机、撤销 USB 授权、在桌面上完全重新安装 chrome、重新安装 USB 驱动程序、尝试两种不同的电缆等的整个过程。仍然,“没有检测到设备......”。昨天,我的手机刚刚升级到 Lollipop,仍然“未检测到设备...”。
今天,我将手机恢复为出厂设置。仍然“未检测到设备......”我尝试了 Chrome Canary。结果相同。
我不知道还能做什么。我什至在另一台使用 Windows 7 的笔记本电脑上尝试过(在另一台机器上使用 Windows 8.1)。我不知道为什么这会突然停止工作。
android - Android相机崩溃,重复图像,原生导航按钮搞砸了
我有一个条码扫描 Cordova (webview) 应用程序,在某个时间点之后,如果我重新启动条码扫描相机,我会遇到一个疯狂的崩溃,让我的手机变砖,直到我完全重启整个手机:
统计:
Nexus 5 Android 4.4.4 内核 3.4.0-gd59db4e
我正在使用 zbar 扫描库,它使用 OpenCV。
这是事情变得混乱时的目录;一旦我开始收到“无法获取_buf”,重复的图像效果就会开始,我必须重新启动手机。
D/mm-camera(199): module_faceproc_port_event_func:667] FD_STREAMON for stream 10004
I/mm-camera(199): cpp_module_handle_streamon_event:1983, identity=0x10004, stream-on done
I/mm-camera(199): isp_streamon: E, session_id = 1, stream_id = 4, stream_type = 5
I/mm-camera(199): wb_set_params: param_id is not supported in this module
I/mm-camera(199): wb_set_params: param_id is not supported in this module
I/mm-camera(199): wb_set_params: param_id is not supported in this module
D/mm-camera(199): module_faceproc_port_event_func:825] MCT_EVENT_MODULE_ISP_OUTPUT_DIM stream info 1920x1080 identity 10004 10003
I/mm-camera(199): isp_ch_util_streamon: session_id = 1, channel_id = 3, already active.
I/mm-camera(199): ispif_streamon: session_id = 1, active_streams = 3
I/mm-camera(199): mct_pipeline_process_set: Stream on/off returned
D/mm-camera-intf(186): mm_stream_qbuf: Starting poll on stream 0xb7f4c4cc type :5
D/mm-camera-intf(186): mm_stream_qbuf: Started poll on stream 0xb7f4c4cc type :5
D/mm-camera-intf(186): mm_stream_qbuf: Starting poll on stream 0xb7f4bda4 type :1
D/mm-camera-intf(186): mm_stream_qbuf: Started poll on stream 0xb7f4bda4 type :1
D/mm-camera(199): module_faceproc_client_schedule_mode:1808] apply 3 report 2 new_mode 0
E/mm-camera-sensor(199): port_sensor_handle_upstream_module_event:1244 Reset previously set LED state!
I/AEC_PORT(199): aec_port_proc_downstream_event: Received LED state timeout. Reset LED state!
D/mm-camera(199): module_faceproc_client_schedule_mode:1808] apply 0 report 3 new_mode 0
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 1689470 CurPosition: 36
D/mm-camera(199): module_faceproc_client_schedule_mode:1808] apply 1 report 0 new_mode 0
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 634118 CurPosition: 33
D/dalvikvm(3354): GC_FOR_ALLOC freed 3373K, 35% free 17228K/26472K, paused 13ms, total 13ms
I/dalvikvm-heap(3354): Grow heap (frag case) to 19.818MB for 3110416-byte allocation
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 602020 CurPosition: 30
D/dalvikvm(3354): GC_FOR_ALLOC freed 0K, 24% free 20265K/26472K, paused 14ms, total 14ms
D/dalvikvm(3354): GC_FOR_ALLOC freed 3037K, 35% free 17227K/26472K, paused 14ms, total 14ms
I/dalvikvm-heap(3354): Grow heap (frag case) to 19.818MB for 3110416-byte allocation
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 552162 CurPosition: 27
D/dalvikvm(3354): GC_FOR_ALLOC freed 0K, 24% free 20265K/26472K, paused 15ms, total 15ms
E/mm-camera(199): cpp_module_process_frame_control:1458 failed: wrong queue for mct_type = 2 frame 8 exp 16
E/mm-camera(199): cpp_module_process_frame_control:1458 failed: wrong queue for mct_type = 2 frame 8 exp 16
E/mm-camera(199): cpp_module_process_frame_control:1458 failed: wrong queue for mct_type = 2 frame 8 exp 16
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 524040 CurPosition: 31
D/dalvikvm(3354): GC_FOR_ALLOC freed 3037K, 35% free 17227K/26472K, paused 13ms, total 14ms
I/dalvikvm-heap(3354): Grow heap (frag case) to 19.818MB for 3110416-byte allocation
D/dalvikvm(3354): GC_FOR_ALLOC freed 0K, 24% free 20265K/26472K, paused 17ms, total 17ms
E/mm-camera(199): cpp_module_process_frame_control:1458 failed: wrong queue for mct_type = 2 frame 9 exp 17
E/mm-camera(199): cpp_module_process_frame_control:1458 failed: wrong queue for mct_type = 2 frame 9 exp 17
E/mm-camera(199): cpp_module_process_frame_control:1458 failed: wrong queue for mct_type = 2 frame 9 exp 17
D/dalvikvm(3354): GC_FOR_ALLOC freed 3037K, 35% free 17227K/26472K, paused 12ms, total 12ms
I/dalvikvm-heap(3354): Grow heap (frag case) to 19.818MB for 3110416-byte allocation
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 328800 CurPosition: 33
D/dalvikvm(3354): GC_FOR_ALLOC freed 0K, 24% free 20265K/26472K, paused 21ms, total 21ms
D/dalvikvm(3354): GC_FOR_ALLOC freed 3037K, 35% free 17227K/26472K, paused 13ms, total 13ms
I/dalvikvm-heap(3354): Grow heap (frag case) to 19.818MB for 3110416-byte allocation
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 370341 CurPosition: 35
D/dalvikvm(3354): GC_FOR_ALLOC freed 0K, 24% free 20265K/26472K, paused 16ms, total 16ms
D/dalvikvm(3354): GC_FOR_ALLOC freed 3037K, 35% free 17227K/26472K, paused 14ms, total 14ms
I/dalvikvm-heap(3354): Grow heap (frag case) to 19.818MB for 3110416-byte allocation
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 398033 CurPosition: 37
D/dalvikvm(3354): GC_FOR_ALLOC freed 0K, 24% free 20265K/26472K, paused 16ms, total 16ms
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 397856 CurPosition: 39
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 424101 CurPosition: 41
D/mm-camera-intf(186): mm_stream_read_msm_frame: Stoping poll on stream 0xb7f4bda4 type :1
D/mm-camera-intf(186): mm_stream_read_msm_frame: Stopped poll on stream 0xb7f4bda4 type :1
D/mm-camera-intf(186): mm_stream_read_msm_frame: Stoping poll on stream 0xb7f4c4cc type :5
D/mm-camera-intf(186): mm_stream_read_msm_frame: Stopped poll on stream 0xb7f4c4cc type :5
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 440796 CurPosition: 43
I/mm-camera(199): af_util_cur_pos_after_lens_move: After move: FV: 438574 CurPosition: 41
I/mm-camera(199): af_util_update_focus_status: AF Status already updated to output!Return!
I/mm-camera(199): af_util_update_focus_status: AF Status already updated to output!Return!
E/mm-camera(199): mct_stream_metadata_bus_msg:Failed to get_buf
E/mm-camera(199): mct_stream_metadata_bus_msg:1259: NULL ptr
D/mm-camera-intf(186): mm_stream_read_msm_frame: Stoping poll on stream 0xb7f4af54 type :8
D/mm-camera-intf(186): mm_stream_read_msm_frame: Stopped poll on stream 0xb7f4af54 type :8
E/mm-camera(199): mct_stream_metadata_bus_msg:Failed to get_buf
E/mm-camera(199): mct_stream_metadata_bus_msg:1259: NULL ptr
E/mm-camera(199): mct_stream_metadata_bus_msg:Failed to get_buf
E/mm-camera(199): mct_stream_metadata_bus_msg:1259: NULL ptr
E/mm-camera(199): mct_stream_metadata_bus_msg:Failed to get_buf
E/mm-camera(199): mct_stream_metadata_bus_msg:1259: NULL ptr
有任何想法吗?
android - 使用 Luna+Nexus 5+Android 5 进行 Android 调试失败
我已经将我的 Nexus 5 升级到了 Android 5,并在 Eclipse Luna 下升级了我的 SDK + 插件。我不能再在我的 android 上调试了!
应用程序日志:
在 Android 4.1.2 上创建一个简单的应用程序并对其进行调试可以工作,在 5.0 上,应用程序在第一行之前关闭(崩溃)。有什么帮助吗?
android - Nexus 5 中的 Android 按钮变小
我正在为特定屏幕动态创建一个按钮。它在模拟器中清晰可见,而在设备(Nexus 5)中看起来非常小。
在模拟器中:
在设备中:
我正在使用以下代码在代码中创建按钮:
我还需要做什么才能在设备中清楚地获取按钮。TIA
android - 菜单软键未显示在 Android Lollipop 设备 [Nexus 9 和 nexus 5]
我似乎无法Menu softkey
在我的 Nexus 9 和 nexus 5 [Android 版 Lollipop] 上找到它。我开发的所有应用程序option menu
都没有显示menu softkey
。所以我无法访问它option menu
。
此外,我的一些应用程序由于其设计要求而无法使用Actionbar/Toolbar
,因此我正在寻找一种无需添加Actionbar/Toolbar
.
所以我想知道,有没有办法显示Menu softKey in Android Lollipop
?
更新:
这是我在 Nexus 9 上找到的示例应用程序。如您所见,它具有
action overflow button
旧版应用程序。谁能告诉我这是怎么做到的?
android - Android onSensorChanged(SensorEvent 事件) - 计步器传感器 (Nexus 5)
我在nexus 5和oneplus one手机上使用计步器。他们都有一个名为“Pedometer”的传感器,供应商是“QTI”,sensorType是33171009
在andorid 的传感器文档中,没有此类传感器的文档。
SensorEventListener 使用传感器事件调用,其中传感器名称为“计步器”,值是16 个浮点值public void onSensorChanged(SensorEvent event)
的数组。由于没有关于这种传感器的文档,我不知道这些值的含义。
如果对象SensorEvent
还告诉我们每个值是什么,那将会很有帮助。相反,您必须在文档中查找 values 数组以查看每个值代表什么。
尽管如此,android 传感器文档中的任何地方都没有提到这个特定的传感器(计步器)(至少从我发现的内容来看,如果有人知道它存在于哪里,那将非常有帮助)。
深入研究源代码,我发现这个传感器(计步器)的实例化是SystemSensorManager.java
通过本地方法在内部实现的nativeGetNextSensor(Sensor sensor, int next)
。
由于这种方法,数组的大小为 16:
有人知道这 16 个浮点值分别代表什么吗?
android - CardView 不会出现在 Nexus5 上
我一直android.support.v7.widget.CardView
在我的应用程序中使用,并且发生了一些有趣的事情。
我在 IDE 预览中看不到 CardView,但它们显示在运行我的应用程序的所有各种设备上,例如:
- 三星(GS III 和 IV)
- 摩托G
- 一加 1
但是当在 Nexus 5(运行 Android 5.0)上运行时,CardViews 不会显示,就好像它们不存在一样,但会显示它们内部的内容。
有人知道这是为什么吗?我还没有找到网上寻找的原因。
这是我的 CardView 的 XML
thePadding
和 theElevation
似乎也不起作用
android - M4A 音频在 nexus 5 上的 android 5.0 上提前停止
我正在编写一个 android 音频播放器,在我运行 android 5.0 的 nexus 5 上,MedaPlayer 会提前 2 到 5 秒左右停止播放音轨。这是不可预测的。它可以在同一轨道上改变。有没有其他人遇到过这种情况,找到了解决方法。我知道这不仅仅是我的应用程序在此设备上出现此问题,因为我在 Vanilla Music Player 中对其进行了测试,并且它做了同样的事情。我见过其他一些人在类似的事情上发帖,但在大多数情况下,我认为这与蒸汽有关。
android - Nexus 5 上的 logcat 出现奇怪错误
我的关系最近开始记录这个错误。这很烦人,我无法调试其他应用程序,因为此错误反复出现:
android - ADB和Android studio停止识别设备的原因是什么
一天几次,我的设备从 adb 设备列表中消失。
运行:命令行中的 adb devices 只是说List of devices attached
没有设备,并且在 Android Studio 的运行对话框中没有设备可见。
我在 Windows 8.1 上使用最新版本的 Android SDK 和 Nexus 5 (Lollipop 5.0.1),但三星 Galaxy S2 也有同样的问题。
它会工作几个小时,但随后我会得到一个日志条目“设备已断开连接”并且设备消失了。该设备在 Windows 资源管理器中仍然可见,并且USB debugging connected
通知仍然显示在设备上。
跑步adb kill-server
并不能解决问题。
断开并重新连接设备通常可以解决问题,但有时我需要重新启动设备。
有没有人经历过这个或有如何调试它的想法?