我特林加入字符串數組中的所有值,但它不工作:如何在字符串數組中添加通過用戶輸入的值?
public class Info extends Activity {
private static final String TAG = "Info";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.info);
Intent myIntent = getIntent();
Bundle b = myIntent.getExtras();
String choice = b.getString("choice");
String fname = b.getString("fname");
String lname = b.getString("lname");
String add = b.getString("add");
String coun = b.getString("coun");
String pro = b.getString("pro");
String pcode = b.getString("pcode");
Log.i(TAG,"selection: " + choice);
TextView textView = (TextView) findViewById(R.id.showmeText);
textView.append(": " + choice);
TextView textView1 = (TextView) findViewById(R.id.fname);
textView1.append(" " + fname);
TextView textView2 = (TextView) findViewById(R.id.lname);
textView2.append(" " + lname);
TextView textView3 = (TextView) findViewById(R.id.address1);
textView3.append(" " + add);
TextView textView4 = (TextView) findViewById(R.id.pro);
textView4.append(" " + pro);
TextView textView5 = (TextView) findViewById(R.id.country1);
textView5.append(" " + coun);
TextView textView6 = (TextView) findViewById(R.id.pcode);
textView6.append(" " + pcode);
}
我ListView中嘗試了這些所有的值,但這些不工作,因爲我是在ListView.Can您加入所有的TextView請幫助我如何在String數組中添加這些列表?
如何推送字符串數組中的所有值,我具有不同變量中的所有值。請幫助我。我被困在這個問題中... – user1050667