理想:注册页面,信息填写后,跳转到另外一个activity
结果:一点注册,app就闪退
日志显示:java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:379)
代码片段:
推荐看下:http://blog.csdn.net/yangzhaomuma/article/details/49877311
http://www.cnblogs.com/topcoderliu/archive/2011/05/07/2039862.html