String address = info.getAddress();
if(address != null && !address.isEmpty())
{
TextView txtSearch = (TextView) getView().findViewById(R.id.text_search);
txtSearch.setText(address);}
안녕하세요, 위의 모든 활동은 내가 주소를 가져오고 텍스트를 설정하기 위해 쿼리하는 클래스입니다. 어떻게하면 내 다른 활동을 textView로 설정할 수 있습니까? 활동 1에서 얻은 주소 결과가 수업에 포함됩니까? 미리 감사드립니다. activity2에에서 onCreate에서어떻게 다른 활동에서 얻은 결과로 텍스트를 설정할 수 있습니까?
// Create an intent to launch the second activity
Intent intent = new Intent(getBaseContext(), activity2.class);
// Pass the text from the edit text to the second activity
intent.putExtra("address", address);
// Start the second activity
startActivity(intent);
: activity1에에서
http://stackoverflow.com/questions/4233873/how-to-get-extra-data-from-intent-in-android –