Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How do I go about creating a location service class in android studio. I want the service to get the latitude and longitude when it
How do I go about creating a location service class in android studio. I want the service to get the latitude and longitude when it is run, without worrying about updating the location. Since I want this service to be run in the background, my understanding is that I have to use intentservice. I am using FusedLocationProviderClient from google play services to get my lat and long, but I am stuck on trying to return the values to the activity that starts the location service.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started