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

  • Home
  • SEARCH
  • 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 8142953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:58:01+00:00 2026-06-06T12:58:01+00:00

Criteria class(http://developer.android.com/reference/android/location/Criteria.html) has power requirement criteria. But clearly not explained how exactly it works.

  • 0

Criteria class(http://developer.android.com/reference/android/location/Criteria.html) has power requirement criteria. But clearly not explained how exactly it works. With ACCURACY it is more clear. ACCURACY_HIGH -will requires GPS provider. ACCURACY_MEDIUM -WiFi/Mobile network. ACCURACY_Low -Mobile network.
But what about power? Why do we need this criteria if it meets the requirements for accuracy?
For example, what provider will be used if I ask the criteria:
locationCriteria.Accuracy = Accuracy.Fine; (It will require GPS only)
And creteria:
locationCriteria.PowerRequirement = Power.Low; (It will require Non GPS-priveder only)

Not one of the location providers should be meet under these requirements. Nevertheless, the program tries to use the GPS provider. Nothing in this are clear and nothing is not explained anywhere in the network. So do i need digging in the Android source code or what?

  • 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-06T12:58:03+00:00Added an answer on June 6, 2026 at 12:58 pm

    Not one of the location providers should be meet under these requirements. Nevertheless, the program tries to use the GPS provider.

    That is explained on the getBestProvider() method documentation. getBestProvider() — and pretty much everything that uses a Criteria, other than getProviders() — will relax the constraints to try to find a match. The power requirement is the first one that will be relaxed.

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

Sidebar

Related Questions

I was following this example: http://developer.android.com/resources/tutorials/views/hello-autocomplete.html And I want to know how I can
I have the following ToggleButton in xml: <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=46dp android:gravity=center > <ToggleButton
I'm got a bunch of html code like this: <a href=http://example.com/project-a title=Project A (test)>Project
I have a criteria query not really working. Here the model: @Entity public class
I'd like to use the Mongoid criteria methods ( http://mongoid.org/docs/querying/criteria.html ). I have a
For instance if I do something like: Criteria c = session.createCriteria(Book.class) .add(Expression.ge(release,reDate); .add(Expression.ge(price,price); .addOrder(
I have a criteria query: Session.CreateCriteria<Sell043Report>() .SetProjection(.ProjectionList() .Add(LambdaProjection.GroupProperty<Sell043Report>(r => r.location)) .Add(LambdaProjection.GroupProperty<Sell043Report>(r => r.agent)) .Add(LambdaProjection.GroupProperty<Sell043Report>(r
I have this class mapped as a entity, lets call it Person. Person has
I am using the Albaharis PredicateBuilder as found here http://www.albahari.com/nutshell/predicatebuilder.aspx to filter results in
Hai am trying to get the gps location using BroadCast Receiver.its working fine,But i

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.