简体   繁体   English

如何将数据传递给TabHost成员的活动

[英]How to pass data to the activity that is a member of a TabHost

My application contains a tabhost, added a tab with by passing an Intent object as content. 我的应用程序包含一个tabhost,通过传递一个Intent对象作为内容添加了一个tab。 And it is working fine, but when i pass data to this intent object using putExtra() method, i'm getting the following exceptions: 它工作正常,但是当我使用putExtra()方法将数据传递给这个意图对象,我发现了以下情况除外:

ERROR/AndroidRuntime(1078): java.lang.IllegalStateException: Could not execute method of the activity ERROR/AndroidRuntime(1078): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.abc.xz.LIST (has extras) } ERROR / AndroidRuntime(1078):java.lang.IllegalStateException:无法执行活动的方法ERROR / AndroidRuntime(1078):原因:android.content.ActivityNotFoundException:未找到处理意图的活动{act = com.abc.xz .LIST(有其他功能)}

can anyboyd help me to resolve this.. 有谁能帮我解决这个问题。

Thanks, venkat 谢谢,venkat

抱歉,它运行正常,但是问题是清单文件中的意图过滤器错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM