V
V
Vladimir Prikhodko2014-01-14 18:58:39
Java
Vladimir Prikhodko, 2014-01-14 18:58:39

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

1 answer(s)
Z
zvorygin, 2014-01-15
@cska63

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 question

Ask a Question

731 491 924 answers to any question