Do I register a single locationlistener object for both network location and gps location or do I create a separate one for each?
Do I register a single locationlistener object for both network location and gps location
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the same listener for both.
When you get the
onLocationChanged()oronStatusChanged()callback you can examine the incoming parameters (location or provider) to determine the source of the callback (ie: Network or GPS).