2014/08/06 썸네일형 리스트형 인텐트(Intent)로 데이터 전달(putExtra, getExtras) 인텐트(Intent)를 사용할 때 데이터를 전달하는 방법에 대해서 이야기 하겠다. Intent로 다른 Activity(예, AnotherActivity.class)를 실행시킬 때는 다음과 같이 한다. Intent intent = new Intent(getApplicationContext(), AnotherActivity.class); startActivity(intent); 그런데, 여기에 추가로 AnotherActivity 데이터를 전달하고 싶을 때가 있다. 이때 사용할 수 있는 것이 putExtra() 다. Intent intent = new Intent(getApplicationContext(), AnotherActivity.class); intent.putExtra("name", "rio"); i.. 더보기 이전 1 다음