Skip to content

A best code for getting location when app is in background and foreground for Pie devices  #360

@BlackBlind567

Description

@BlackBlind567

I know here is a good example of background services to get location. But in that code I am unable to understand that which one service is best of getting location and how to get location on another activity from service. I also know i have to call start service in another activity and i have to write broadcast function for getting location periodically.

Now my main problem is I only know all of that what I have to do but here I am unable how to do .

I want a specific code help where I have a service for location and get that location on another activity when app is in background or foreground with less battery drag for Pie Devices.

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