Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:13:58+00:00 2026-06-09T18:13:58+00:00

As we all know, some Android phones have no Google services, such as HUAWEI,

  • 0

As we all know, some Android phones have no Google services, such as HUAWEI, ZTE and Samsung devices, so when using android.location.LocationManager and try to request current location with NetworkProvider, it always has no response. GPSProvider (“gps”) works fine but it takes too much time when inside. So I’m now using a 3rd-party location provider which may not be accurate enough as a backup plan.

The question is I don’t want to wait a time-out-period and apply the backup if the device has no Google Service, Is there any way to detect this while my application initializing?

I set a flag after the Google service response nothing for current, I wonder if there is an alternative.

Thank you 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:14:00+00:00Added an answer on June 9, 2026 at 6:14 pm

    At last i use following strategy:

    1. Start to locate with both Google’s and 3rd-party provider and wait till both provider returns (or time out).

    2. Check results, if Google’s service failed, add a Boolean flag in preferences to indicate that the Google Location Services is not available in this device, and NEVER try to use Google’s location Service if the flag is set.

    3. After a few days, run the steps above again to recheck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We all know that openId has become such a popular method for user authentication,
We all know the effects that lots of thrown exceptions can have over the
We all know about Boost . What other free C++ libraries are worth using?
I am developing an app where I have to lock some android default Apps
I have created some aidl files for IPC in my Android project. They compile
I asked this question about using the system-drawables in an Android-app some time ago:
I have an app that's built for Android 2.2, so I'm not using the
we all know the android system database should be stored in /data/data/package name/ directory,there
All we know that Android application is highely customizable with respect to support of
I have written a mobile application for android. When I test it on Samsung

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.