2010-06-01 109 views
0
Intent intent = new Intent(this,AnotherClass.class); 
intent.putExtra("Name", "foo"); 
setResult(RESULT_OK, null); 

super.onActivityResult(requestCode, resultCode, data); 
    switch (requestCode) { 
     case (1): { 
     TextView textView = (TextView) findViewById(R.id.TextView01); 
     if (resultCode == Activity.RESULT_OK) { 
      textView.setText("Data" + data.getStringExtra("Name")); 
     } 

什麼我做錯了內傳遞數據?問題活動

回答