제가 웹 이미지를 그리드뷰로 띄워서 이미지 하나 클릭시 새로운 액티비티로 띄우려는것을 하려고 하는데요.

 

받아오는쪽은

 Intent intent = getIntent();
     data = intent.getByteArrayExtra("position");
     dataimage = BitmapFactory.decodeByteArray(data, 0, data.length);
     
     full_image = (ImageView)findViewById(R.id.image_view);
     full_image.setImageBitmap(dataimage);

 

인데 제 생각에는 보내는쪽에서 잘못 한거 같아서요.

 

 public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
  
       Intent intent = new Intent(this, view_image.class);
       intent.putExtra("position", arg2);
       startActivity(intent);

 

이렇게 작성되었습니다.

 

웹 이미지이다 보니 intent로 넘겨줘야 하는 값이 string인데요 string 값을 인텐트로 넘기려면 어떻게 설정을 해주어야 할지 정말 모르겠네요.

 

도움 부탁드립니다.