How are speedometer apps enabling GPS location

Hello guys

I noticed a lot of speedometer apps, when they run they display the GPS icon on the notification bar. Which means the location and speed is determined by GPS. This is weird because I have the location set to network not GPS (so GPS is off)… How are they achieving this? This is not one app, but all the speedometer apps.

I used the new location fused api and the location client and I set the accuracy to high. I was never able to get the same behaviour.

Please let me know if you have any idea how this is achieved
Thank you

Well, that can be achieved by putting the code in you app


Intent intent=new Intent(“android.location.GPS_ENABLED_CHANGE”);
intent.putExtra(“enabled”, true);


Intent intent = new Intent(“android.location.GPS_ENABLED_CHANGE”);
intent.putExtra(“enabled”, false);

@promo87 u don’t have to reply every post man

Also I would say you don’t need to tell me what should I do or not !! Also other than replying me over here I will say its better if, you tried helping @OP over here !

Thank you so much promo87… Keep up the hood job of helping others

If you are not here to share and help each other, then why are you even browsing the forum? I can’t believe you are attacking someone for helping others!!! Open your own thread and ask people not help each other, and let’s see if others think like you

No worries @hanfoosh I am glad if my post has helped you in solving your confusion ! :smiley: