Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BlackBlind567 opened this issue Feb 28, 2019 · 4 comments

Comments

@BlackBlind567
Copy link

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.

@BlackBlind567
Copy link
Author

I know it was late but you can find best code here
Now I solved my problem with my patience.]
Thank You

Any One want to location updation fork or download my repo

@hafiz013
Copy link

@BlackBlind567 did u code working fine in background and foreground process?

@BlackBlind567
Copy link
Author

@BlackBlind567 did u code working fine in background and foreground process?

yes, it's working. Did you try my code?

@hafiz013
Copy link

@BlackBlind567 yes can but after long time (a few hours) it is close because battery optimiser by manufacture itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants