Bluetooth share: File Unknown file not sent - android-contentprovider

I created a system application to transfer the file from one device to another device over Bluetooth using content Uri of Bluetooth with the help of BluetoothShare.java in android 4.2. but it shows the Error message in the toast like Bluetooth share: File Unknown file not sent.Please give solution to me ,to transfer the file using Bluetooth as system application.
Thanks in advance.

Related

macOS - Get information from connected iOS device via USB

I'm developing a macOS app which needs to detect & get information from connected iOS devices via an USB cable.
I've read here how I can get the name of the devices connected via USB, but I'm only able to get a short name of the device (i.e. iPhone instead of John's iPhone)
I'm looking for a way to retrieve the device's full name, and other information about the device: iOS version, device id, carrier etc.
Can this be achieved using Swift?
Thanks to #Robert's comment, I found out about libimobiledevice's ideviceinfo which does what I needed. I couldn't find a way to directly include it in my app, but I found the imobiledevice-net repo, which has macOS libraries on the release page.
These libraries can be used with the help of Swift's Process class.

Error when trying to connect bluetooth device via ExternalAccessory framework: "Unsupported Legacy Device"

We have a device with an MFI chip we would like to connect through right from the app.
Using EAAccessoryManager.shared().showBluetoothAccessoryPicker, we can indeed see the peripheral appear in the picker after a few seconds.
If we tap on it, it will load for a moment, then display the following error :
Unsupported Legacy Device
Please go to Settings to pair with "DEVICE_NAME"
For some reason, once we've connected once through Settings > Bluetooth, we are then able to connect from the app using the same exact method.

How to transfer a file via bluetooth using Ymodem in iOS (Swift)

I am tasked with updating a bluetooth device's firmware. I am using Swift and need some idea on how to accomplish this. Here are the instructions.
Protocol: Ymodem. Handshake with unit, In Ymodem, the 1024 bytes is
changed to 256bytes, detailed algorithm refers to source code we
provide.
I have the .bin file and am able to download it to my app but I have no idea how to transfer it to the device after I make the bluetooth connection using Ymodem. I see very little on the web for Ymodem and iOS.

React-native native module possibilities for background task on IOS

My Problem: I have an app that communicates with a medical BLE device. I have it all working but my problem is that when an ios user puts the app in the background I stop getting/processing the messages sent via bluetooth. Android seems to keep getting these messages but from what I've found, on iOS, the JS bridge is torn down and there isn't a solution out there for this problem. The phone must continue to process the data sent from the BLE device.
My thought is this and this is my question for you all.
Would it be possible to create a native module for ios that will always be running and be doing the following: getting ble data as it is notified. Store that data to the file system and push it to a webservice all while the app is in the background? It would also be great to have the ability to read the fs created files and show some data about them when the app comes back to the foreground. Would this be possible?
Do you know of another option that could work?
Any help is greatly appreciated.
OK as I was heading down the native path and reading on the ios bluetooth schtuff I found this article Core Bluetooth Programming Guide and specifically it mentions a plist setting.
The Core Bluetooth background execution modes are declared by adding the UIBackgroundModes key to your Info.plist file and setting the key’s value to an array containing one of the following strings:
bluetooth-central —The app communicates with Bluetooth low energy peripherals using the Core Bluetooth framework.
bluetooth-peripheral —The app shares data using the Core Bluetooth framework.
So I thought to myself, would just by adding these keys to my xcode project that iOS would be smart enough and not care that I am a RN app and not native... well that was the ticket! I plugged these values in and the ble data is processed even when I open another app. "Wallah!" ;)
You have to enable iOS background mode capability in your Xcode project settings.
Also take a look at react-native-ble-plx which provides background support for both iOS and Android.

Sending cod files via bluetooth in blackberry

In android device where .apk files are shared and send via bluetooth and then install on device.
Can similar thing is available in Blackberry devices lower versions below OS 10 ?
Can we send or share and install .cod applications via bluetooth in blackberry.
Please do let me know
The short answer is that there is no OS (standard) supplied method to do this.
I think this is a variation on this question
Can we share application in blackberry without the use of jad files
and as with that question, using CodeModuleManager (as suggested in another answer) requires an application that is already on the phone. In this situation, this installer application would have to know how to open a Bluetooth connection, and read the data and then create the new Application using CodeModuleManager I suspect this solution also assumes that there is another application that is sending the file, from a device what is paired with the phone. Is this a workable solution?

Resources