0
I already tried . putParcelable and . putSerializable and it didn’t work. If it is not possible to do this, it is possible to get a Bluetoothsocket object already connected from the system?
0
I already tried . putParcelable and . putSerializable and it didn’t work. If it is not possible to do this, it is possible to get a Bluetoothsocket object already connected from the system?
Browser other questions tagged android
You are not signed in. Login or sign up in order to post.
He wants to pass it on?
– ramaral
I want to pass it from one Fragment to another
– Marcos Vinícius
Do you really need to do this?
– ramaral
according to the "business rule" I need, unfortunately yes, it is possible?
– Marcos Vinícius
I don’t know, I don’t think so.
– ramaral
Is it not possible to even pick up this connection object in any way? for example, to take an Intent, you use getIntent, there is no way for me to get that Bluetoothsocket from the system?
– Marcos Vinícius
I don’t know, I’ve never used it. I still don’t think I should have this need to pass the Bluetoothsocket between Fragments. These Fragments have a Activity in common? If you have the code for Bluetoothsocket then it should be in it and both Ragments use it.
– ramaral
yes, all of them are linked to a main activity. As I would then access the data of this Activity?
– Marcos Vinícius
See if this, this and this helping.
– ramaral
thank you so much for your help!
– Marcos Vinícius