Skip to content

Starting period scan from service #451

@Tintillamilano

Description

@Tintillamilano

I came across a problem. If I try to start a period scan from a service, to run it we must call the onResume() method of the BleManager class, since it is not be called from the override of {@link android.app.Activity#onResume()}. The problem is that in the onResume method the m_isForegrounded flag is set to true, while by default it is false and does not allow the startPeriodicScan() method to run correctly.

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