I would like to transfer files (using OBEX / OPP / FTP profile over Bluetooth) between two instances of my mobile app which is running on two unpaired Android devices (which are not rooted). Is this possible?
If not, can I pair the devices without user interaction and unpair them once the transfer is finished? I am guessing not:
public static final String BLUETOOTH (Added in API level 1)
Allows applications to connect to paired bluetooth devices.
public static final String BLUETOOTH_ADMIN (Added in API level 1)
Allows applications to discover and pair bluetooth devices.
public static final String BLUETOOTH_PRIVILEGED (Added in API level 19)
Allows applications to pair bluetooth devices without user interaction. **This
is not available to third party applications**.
Still, I have also found this explanation so would love to be corrected:
BLUETOOTH is for connecting to devices that have already been paired in the
bluetooth settings. BLUETOOTH_ADMIN allows you to connect to any
device -- paired or not.