A
A
Arsen2022-01-28 23:09:17
Android
Arsen, 2022-01-28 23:09:17

How to pass a standard android object of type BluetoothDevice through Extra?

I know that it is possible to transfer custom through Bundle, but as system objects, I did not find information (
For example, you need to transfer an object from an activity to a service

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2022-01-29
@Martian97

A little unexpected, but BluetoothDevice implements Parcelable. So just putParcelable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question