Skip to content

Android 6 UI freeze when scanning #454

@eckoj433

Description

@eckoj433

Im having lagg issues with Android 6.0, simmilar to issue #313
However asking for permissions runtime and allowing them, does not have any effect.

periodically about once every second, the ui just freezes for 200-300 ms, and this is what i get in the log when the lagg occurs:

11-21 12:34:01.843 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.853 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.853 15358-15358/com.cgi.beaconframework D/BluetoothLeScanner: Stop Scan 11-21 12:34:01.863 15358-15358/com.cgi.beaconframework D/BluetoothLeScanner: Start Scan 11-21 12:34:01.873 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.873 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.873 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.883 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.923 15358-15370/com.cgi.beaconframework D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=7
this is with setDebug(false).

attatching a more extensive log with setDebug(true).

log.txt

If i move to an isolated area where there are no beacons in range, the lagg stops, but as soon as there are beacons in range the lagg starts again. Could there be some other permission that im missing which is causing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions