Android - Geo-fence does not work, using coarse_location - location

I am using the geo-fencing example available at the android developer site.
The geo-fence detection works only if the GPS is turned on, although I am using Coarse Location.
The radius is set to 1000 meters too.
Any idea?

Yes, this is expected. Location Services geofences will only work with "fine" location permissions and with location services set to "battery saving" or "high accuracy". "Device only" mode does not work.
To use geofencing, your app must request ACCESS_FINE_LOCATION.
http://developer.android.com/training/location/geofencing.html

Related

radio.garden volume not showing volume control in browser on microsoft surface

I don't know anywhere else to ask this. radio.garden is an aggregator of online streaming radio stations. In windows 10 on various machines, it shows a volume slider beside the play/pause controls. With the same version of firefox on windows 10, and still after upgrading to windows 11, the volume control doesn't show on microsoft surface. I have deleted display and audio drivers and let them update, and I have turned firefox hardware acceleration settings off (even though the settings indicates that it is only for graphics). I have also verified that microsoft edge also does not display the volume control.
What do I need to check next to figure out what's going on? I assume the browsers are using some api that perhaps I have blocked via privacy settings that aren't applicable on desktop or something, or maybe provided by some audio drivers and not others?

Modifying / Setting / revoking permissions of Android application (system? )via adb, android 11 (miui 12.5 eu)

I'm a Basic Newbie trying to make changes on my phone ;-) maybe you can help me.
I'm trying to limit the amount of data I share with Xiaomi & google while using a xiaomi phone.
Since the unfortunate update to miui 12.5 I cannot define the permissions I want using Setting=> Apps=> Manage apps => permissions.
For example:
Miui Bluetooth ¦ location permission : preselected "Allow only while using the app". I cannot change this! All options are grey!
I also have an issue when I try to limit the data access. Specially the background data, and WIFI.
I am hoping to be able to make some changes over adb, but I've no idea how... just managed to see the permissions for each app.
The phone is not rooted, and the stupid xiaomi unlock... doesn't work (your device is not recognized when I connect it over USB).
Thanks for your help!
(please explain things as if you'd try to explain it to your Granma :-))

Location Tracking in Background

I am developing a windows phone app that uses users current location, I am making the app in 7 OS. My question is, Can I track the location in background, that is when the screen is locked?
I know this is a possibility in wp8 as it provides us with GeoLocator class, but can I achieve this in wp7? I am basically making a runtracker app hence I would like my app to track the location even when its in background, is it really feasible?
Your help is always appreciated!!
It is possible to keep the app running under lock screen, as it does, for example, Endomondo app.
Using Idle Detection, you can keep the app on, although screen is locked, and you can keep on tracking the location. Actually, it is not running in background, but in the foreground. Just the screen is locked. So, be careful not to drain user's battery.
You have to set the PhoneApplicationService.ApplicationIdleDetectionMode property to Disabled, for example in InitializePhoneApplication() method in App.xaml.cs:
PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled;
Note that there are special certification requirements for this type of apps. Refer to section 6.3 (Apps running under a locked screen) of the following page:
Additional requirements for specific app types for Windows Phone
I got the same problem in one on my apps..
I don't think it' s feasible for wp7..
Bt if you want to do it with wp8 you can refer following link.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681691%28v=vs.105%29.aspx
And to know about background supported and unsupported API's http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942%28v=vs.105%29.aspx/css
GeoCoordinateWatcher Class exists in WP7, but here is the documentation from MSDN -
This API, used for obtaining the geographic coordinates of the device,
is supported for use in background agents, but it uses a cached
location value instead of real-time data. The cached location value is
updated by the device every 15 minutes.
More Info : http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202962%28v=vs.105%29.aspx/css

one device controlling a number of devices actions

I am making an app in which the administrator controls other devices in the same wi-fi network and controls the actions like viewing a document by the others,which, is the same as what the administrator is viewing....i need the code for this using zero-configuration networking
The Developer Docs on the palm developer center are very good. This is the service you probably need to read up on and understand...
https://developer.palm.com/content/api/reference/services/zeroconf.html

How to programmatically turn GPS on and off in Windows Phone 7

So far, to turn on and off the GPS device in Wp7, I do it in Settings Menu. Wonder If this can be done in code?
Thanks
---------- Update
Sorry for the confusion. Instead of turning GPS on and off, What I really mean is how to turn on and off the LOCATION in the Settings Menu of Wp7.
You can get the GPS data but you are not able to turn the sensor on or off via your application.
The most you can do in your application is start the geolocation data acquisition and stop it.
Windows Phone 7 apps should not change global settings for the phone.
You should have your own settings page in your app, with it's own toggle for whether or not your app should use the location data.
Then you check your setting before you access the location data.
Why would you want to turn it off globally?

Resources