Answer the question
In order to leave comments, you need to log in
How to pass through Intent an object that contains WifiManager?
Good afternoon!
I need to pass through the Intent an object that contains the WifiManager (but I don't think it matters). The main thing is that when I try to serialize it, I get a NotSerializableException.
Please tell me how can I implement my idea?
Answer the question
In order to leave comments, you need to log in
I think that it is fundamentally impossible to convey it - because. serialization is used to allow objects to cross virtual machine boundaries. Some objects that are tied to native code cannot cross such boundaries - and this is pointless.
So either write your own serializer that will throw out everything unnecessary (including WiFiManager), or pass another object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question