Skip to content

Starting period scan from service #451

Open

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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