안드로이드 개발 질문/답변
(글 수 45,052)
List<ImageView> imageViewList = new ArrayList<ImageVIew>();
Intent intent = new Intent(from Class, to Class);
intent. ??
startActivity(intent);
이미지뷰 List를 인텐트로 보내고 싶은데요 .
첨에는 bitmapList로 for문 돌려가며 보내려고 했는데..
생각해보니 보낼때 마다 인텐트를 실행해야되는것 같애서 ..
이미지뷰 List를 통채로 보낼수있는 메서드는 없을까요?
putParcelableArrayListExtra 이걸 사용하는건지..
Intent.putParcelableArrayListExtra ("a", imageViewList);
이렇게 바로 이미지뷰 리스트 보내려니까 에러가 나더군요..
어떻게 해야하는 건가요?? ㅜㅜ




번들을 이용하는 방법이 있어요.
Intent intent = new Intent(MixListView.this, ObservedPropertyListView.class);
Bundle extras = new Bundle();
extras.putSerializable("marker", (Serializable) markers.get(pos) );
intent.putExtras(extras);
startActivity(intent);
이런식으로 사용하고 있습니다.
사실 제가 인텐트로 넘기고 자하는건 리스트는 아니고 객체인데요, 혹시 도움이 될까하여 댓글 달아봅니다.