0

I want to find out if there is a way to send an entire ImageView to another activity. Is it possible to achieve that with GSON?

Community
  • 1
  • 1
Ramón Wilhelm
  • 967
  • 2
  • 18
  • 39
  • 3
    Sending the `ImageView` itself would be a bad idea and not possible anyway. Instead, you could send a path to the image. – litelite Jul 17 '17 at 15:50
  • ImageView or Bitmap? – an_droid_dev Jul 17 '17 at 15:51
  • 2
    Given this question and [your previous one](https://stackoverflow.com/questions/45148045/cannot-pass-selfmade-serializable-object-to-another-activity-via-intent), you may have better luck if you ask a question where you explain what you are trying to achieve, at a high level, and ask for solutions. – CommonsWare Jul 17 '17 at 16:06

1 Answers1

1

You could try wrapping it in a class that implements Parcelable, but I think sending an entire view element to another activity is not really the way to go... Just send the image url and then load an image to an imageview in the other activity.

deHaar
  • 17,687
  • 10
  • 38
  • 51