error:Parent view is not a TextView

本文讨论了在Android应用中出现的两个常见错误:“Parent view is not a TextView”和“sendUserActionEvent() mView == null”,解释了这些错误通常出现在Samsung设备上,并提供了可能的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Android: Can I ignore the errors “ Parent view is not a TextView ” and “ sendUserActionEvent() mView == null ”?

In my Android app, I am constantly getting the following two errors in my logcat:

06-02 20:33:16.070: E/MoreInfoHPW_ViewGroup(13983): Parent view is not a TextView
06-02 20:33:12.010: E/ViewRootImpl(13983): sendUserActionEvent() mView == null

My app runs completely fine in spite of these two errors, and I've found no definitive answer as to whether or not they are harmful (or even fixable!) errors or if they can be safely ignored. Thus far I've been doing fine just ignoring them, but I wanted this to be asked since I'm sure I am not the only one confused as to what these two errors mean.

For reference, I am getting these errors while running the app via adb on a Samsung Galaxy S5.

EDIT: The Parent view is not a TextView error happens at many times, but notably it happens whenever I press the back button on the action bar and when I start a new activity by pressing a button. I'm using the support library, minSdk=8

1 Answer

Yes you can ignore, it's a known issue with Samsung models. If it bothers you, maybe you can replace

context.startActivity(....); 

with:

startActivity(new Intent(....));

and see if it works for you too, as indicated in this answer: http://stackoverflow.com/a/24592235/3202370



原文地址:http://stackoverflow.com/questions/24005959/android-can-i-ignore-the-errors-parent-view-is-not-a-textview-and-senduse
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值