Android putExtra cannot resolve symbol

I'm trying to transfer a string from one activity to another in android. I'm working off of this answer: How to use putExtra() and getExtra() for string data

However, I think I'm doing something really basic incorrectly. When I type " i.putExtra " I get the error "cannot resolve putExtra." Do I need to import something to use putExtra ?

In the documentation for putExtra it seems that I should be able to use it as long as I've imported android.content .Intent, which I have.


您必须将代码放入OnCreate()语句中。

链接地址: http://www.djcxy.com/p/67906.html

上一篇: HashMap不能转换其他类型?

下一篇: Android putExtra无法解析符号