I have a class, lets say "Shape" defined within my Portable Class Library so that I can use this "Shape" class in both my Android and iOS code. Is there an elegant/best practice way to pass an instance of this class between android activities? ( Without reverting to using static variables )
In Android you would extend "Shape" with Parcelable or Serializable, but since this class is in the PCL part of my code, this is not possible.
I thought of using Newtonsoft.Json and then send a JSON string between activities, but this would involve including all of Newtonsoft.Json dependencies within my Android Xamarin project, and I am not sure whether this is the best way to go.
Any advice would be appreciated!