B4A Question BLE Android 9 - Scanning stops when screen turned off - Jmu5667    
Feb 28, 2019.PERMISSION_ACCESS_COARSE_LOCATION) = False Then
Log("No location permission.")
Else
ScanWithLeScanner... Sub ScanWithLeScanner
Dim ScanSettingsStatic As JavaObject
ScanSettingsStatic.InitializeStatic... = Adapter.RunMethod("getBluetoothLeScanner", Null)
ScanCallback.InitializeNewInstance... = True
StartScan_le
End Sub
Sub Service_Destroy
StopScanWithLeScanner
Timer1...
link: I have tried using the following code :
rivate Sub ScanWithLeScanner
Dim...
B4A Question BLE custom ScanFilter device settings - Rick in North Carolina    
Nov 13, 2018 ScanWithLeScanner
Dim ScanSettingsStatic As JavaObject
ScanSettingsStatic.InitializeStatic("android.bluetooth.le.ScanSettings")
Dim ScanSettingsBuilder As JavaObject
ScanSettingsBuilder.InitializeNewInstance("android.bluetooth.le.ScanSettings.Builder", Null)
'https...
link: OK I made a mistake in my Sub ScanWithLeScanner. Anyway this code works in Android 7,8,9 (in case...
B4A Question BLE2 library - update? - Erel (first post)    
Sep 5, 2023=ScanWithLeScanner...
link: /forum/pages/results/?query=ScanWithLeScanner
After spending some time searching and reading...
link: /android/forum/pages/results/?query=ScanWithLeScanner
I was very hopeful that I found solution, but not...
B4A Question [SOLVED] - Android 10 - Background GPS/Ble scans stop getting data after 1 hr - Jmu5667 (first post)    
Jan 20, 2021   
(3 reactions) Sub ScanWithLeScanner
Dim ScanSettingsStatic As JavaObject
ScanSettingsStatic....writelog($"svc_ble::ScanWithLeScanner, Filter=${aScanFilterJO.RunMethod("toString", Null...
link: Sub ScanWithLeScanner
Dim ScanSettingsStatic As JavaObject
ScanSettingsStatic...
link:
End Sub
Private Sub ScanWithLeScanner
Dim ScanSettingsStatic As JavaObject...
link: backgrouns scanning
ScanWithLeScanner
End Sub
Sub Manager_StateChanged (State As Int)
Dim...
B4A Library [class] Google Code Scanner - no permission, very simple to use, barcode scanning - Erel    
Jul 18, 2024   
(32 reactions).FORMAT_ALL_FORMATS) 'For better performance pass the specific formats needed.
Wait For (Scanner.Scan...This solution is based on ML Kit (https://developers.google.com/ml-kit/vision/barcode-scanning/code...
link: Well... i ve recreated.... in b4xpages ...don't know if has something to do with views... (Activ...
link: Thanx for checking it out.
I've attached my app......
link: Please attach your project... and I think tomorrow I will answer to you... I m out for work...
B4A Question How do i scan for multiple BLE UUIDs? - ema01 (first post)    
May 23, 2024   
(2 reactions).")
Else
ScanWithLeScanner
End If
End Sub
Private Sub Scan_Result (Result...)
Manager_DeviceFound(name, address, CreateMap(), rssi)
End Sub
Private Sub ScanWithLeScanner
Dim... = Adapter.RunMethod("getBluetoothLeScanner", Null)
ScanCallback.InitializeNewInstance... AdvertisingData)
ConnectedName = Name
StopScanWithLeScanner
manager.Connect2(Id, False...
link: , an example that uses BluetoothLeScanner: https://www.b4x.com/android/forum/threads/ble...
B4A Question BLE Android 8.1 and higher - Philip Prins (first post)    
Jan 22, 2020 add a second filter :
Private Sub ScanWithLeScanner
Dim ScanSettingsStatic As JavaObject
ScanSettingsStatic.InitializeStatic("android.bluetooth.le.ScanSettings")
Dim ScanSettingsBuilder As JavaObject
ScanSettingsBuilder.InitializeNewInstance("android.bluetooth.le...
You are correct.
1. Using BluetoothLeScanner: https://www.b4x.com/android/forum/threads/ble...
link: :
First create a scanfilter :
Private Sub ScanWithLeScanner
Dim ScanSettingsStatic...
B4A Question BLE scanSettings? - Erel (first post)    
Jul 10, 2018   
(6 reactions)("No location permission.")
Else
ScanWithLeScanner
End If
End Sub
Private Sub...)
Manager_DeviceFound(name, address, CreateMap(), rssi)
End Sub
Private Sub ScanWithLeScanner... & ", " & AdvertisingData)
ConnectedName = Name
StopScanWithLeScanner...), ScanCallback))
End Sub
Private Sub StopScanWithLeScanner
Scanner.RunMethod("stopScan...
link: of JavaObject to access the native BluetoothLEScanner in order to pass custom scanSettings built...
B4A Library 1D and 2D Barcode Scanner with ZXING - another Barcode Scanner that is 100% embedded in B4A - Johan Schoeman    
Oct 6, 2024   
(35 reactions)
Sub b3_Click
zx1.Visible = False
zx1.stopScanner
End Sub
Sub zx1_scan_result (scantext... ("B4A scan format = " & scanformat)
End Sub
The library:
ZxingBarcodeScanner
Author...
link: -live-scan-of-1d-and-2d-barcodes.116227/post-726144
Do you think is better to use it like this ?...
link:
Hi there...
I am using GMS mlkit scanner but there a lot devices not supporting it... like some...
link:
Sorry, I know this is an old post, but I would like to know which file(s) I should download to be a...
B4A Question Force media scanner on deleted file - lymey    
Jan 29, 2013 the media scanner to refresh
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", "file://" & File.Combine(filepath, filename))
Dim p As Phone
p.SendBroadcastIntent(i)
Bottom line question then:
How do I make the media scanner rescan and display... the media scanner runs again....i.e when you switch the device off then on, then the image is correctly gone from the gallery/album.
How can I force the media scanner to run and update the device gallery...
Page: 1  
2  
3  
4  
5  
6  
7