Hi all
I am trying to figure out how to handle incoming file notification for a file transmitted through Bluetooth.
This is the scenario:
- both devices are NOT paired
- both BT adapters are visible
- I DON'T want and I don't need to pair devices. I just need to know the name of the incoming file. (When i send the file from one device to another, Android shows me the name of the file even if i not accept the transfer)
What i am searching to do is:
- send a file from device "A" to device "B".
- device "B" detects an incoming file (Android shows me a notification)
- if incoming file is for example "test.txt" i want to dismiss/reject file transfer automatically without user intervention and possibly removing (or not displaying at all) android notification
Should i use some broadcast receiver? Intent? or something else?
Thanks in advance!
I am trying to figure out how to handle incoming file notification for a file transmitted through Bluetooth.
This is the scenario:
- both devices are NOT paired
- both BT adapters are visible
- I DON'T want and I don't need to pair devices. I just need to know the name of the incoming file. (When i send the file from one device to another, Android shows me the name of the file even if i not accept the transfer)
What i am searching to do is:
- send a file from device "A" to device "B".
- device "B" detects an incoming file (Android shows me a notification)
- if incoming file is for example "test.txt" i want to dismiss/reject file transfer automatically without user intervention and possibly removing (or not displaying at all) android notification
Should i use some broadcast receiver? Intent? or something else?
Thanks in advance!