class TeatViewNum{ public String prime; public String vice; public String x; public String y; TeatViewNum(){ prime = new String("0000"); vice = new String("0000"); x = new String("0000"); y = new String("0000"); } } TeatViewNum textview_num;
以下的方法,甚至调用都会导致整个程序闪退,str_extra是string变量,=“800”,这个是没有疑问的。
textview_num.vice = new String (str_extra); textview_num.y = new String (str_extra);
textview_num.vice = new String (str_extra);
textview_num.y = new String (str_extra);
这个要检查一下是不是你的RAM空间太小,存不下这个变量