Good morning,
I have two Activities and would like to pass an object instance between them.
The object is of type WebDavClient from a nugetpacket.
// Activity a:
Intent intent = new Intent(this, typeof(NewAcivity));
intent.PutExtra("Client", JsonConvert.SerializeObject(client));
// Activity b:
client = JsonConvert.DeserializeObject<WebDavClient>(Intent.GetStringExtra("Client"));
Am I on the wrong track in general or does it only not work with this object?
How else can objects be passed?
Via the class Intent?
Many thanks for your help.
Translated with www.DeepL.com/Translator (free version)