How do I store a Bluetoothsocket object in a Bundle?

Asked

Viewed 22 times

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?

  • He wants to pass it on?

  • I want to pass it from one Fragment to another

  • Do you really need to do this?

  • according to the "business rule" I need, unfortunately yes, it is possible?

  • I don’t know, I don’t think so.

  • 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?

  • 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.

  • yes, all of them are linked to a main activity. As I would then access the data of this Activity?

  • See if this, this and this helping.

  • thank you so much for your help!

Show 5 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.