想写个搜索功能为什么会报错
aide吧
全部回复
仅看楼主
level 6
是不是少了哪个包,谁能告诉我一下谢谢
2016年10月03日 05点10分 1
level 6
dd
2016年10月03日 09点10分 2
level 11
第一加入头文件
import android.widget.EdiText;
然后在onCreate函数中实例化对象:
EditText edittext = (EditText)findViewById(R.id.edittext);
2016年10月03日 09点10分 3
错误修复了,但是为什么没法实现跳转[泪][泪]
2016年10月03日 13点10分
@25安全卫士 你可能没注册next.class这个Activity
2016年10月03日 14点10分
@toshiba猪猪 注册了......
2016年10月03日 14点10分
@toshiba猪猪 帖下log,我定位一下问题所在
2016年10月03日 14点10分
level 6
dd
2016年10月03日 13点10分 4
level 6
dd
2016年10月03日 13点10分 5
level 6
dd
2016年10月03日 14点10分 6
level 6
2016年10月03日 14点10分 7
不是这样的啊,你要过滤红色的,带Exception这个英文的那行
2016年10月03日 14点10分
先过滤,等级为E
2016年10月03日 14点10分
@toshiba猪猪 抱歉没听懂[疑问]
2016年10月03日 14点10分
2016年10月04日 03点10分
level 11
在AndroidManifest.xml文件的<activity/>节点加入
<activity
android:name=".next">
</activity>
2016年10月03日 16点10分 8
level 11
还有,你打开软件额额时候.EditText是空的,所以你的判断是不成立的,不会跳转,并且onCreate函数是只执行一次的所以你写的有问题
2016年10月03日 16点10分 9
谢谢
2016年10月04日 03点10分
level 5
没声明就敢用!!!
2016年10月04日 09点10分 10
1