Fixed
Status Update
Comments
lh...@gmail.com <lh...@gmail.com> #2
I'm afraid you are going to need to reproduce this on an aosp build such as the emulator to rule out any issues from Samsung.
ty...@gmail.com <ty...@gmail.com> #3
This apparently is a bug which could be reproduced on different devices, not only Samsung but also HTC, even a Google Nexus (see SO links down this posting).
After some time (hours to days), Android (starting 4.1? 4.2?) just does not call the listener anymore.
Most apps I have running using the NETWORK provider don't get updates after that.
Reboot fixes the issue and all apps seem to find the proper location again.
Checking the providers' getLastKnownLocation().getTime() shows it's very old data.
What's really interesting, that Google Maps actually seems to work. Some would assume that it would not, too; and some would assume the getTime() for the providers lastknown location would get updated, but they still show with old locations and old timestamp.
http://stackoverflow.com/questions/12630413/has-network-provider-behavior-changed-in-android-4-1-1?lq=1
http://stackoverflow.com/questions/13594932/network-provider-not-providing-updated-locations
http://stackoverflow.com/questions/15747543/locationlistener-of-network-provider-is-enabled-but-onlocationchanged-is-never?lq=1
I actually do experience this problem, too, and it's not a real solution to tell my customers "you have to reboot your device".
Regards,
Oliver
After some time (hours to days), Android (starting 4.1? 4.2?) just does not call the listener anymore.
Most apps I have running using the NETWORK provider don't get updates after that.
Reboot fixes the issue and all apps seem to find the proper location again.
Checking the providers' getLastKnownLocation().getTime() shows it's very old data.
What's really interesting, that Google Maps actually seems to work. Some would assume that it would not, too; and some would assume the getTime() for the providers lastknown location would get updated, but they still show with old locations and old timestamp.
I actually do experience this problem, too, and it's not a real solution to tell my customers "you have to reboot your device".
Regards,
Oliver
al...@gmail.com <al...@gmail.com> #4
We have seen very similar problem in our application. Our problem has happened in
- HTC Desire S (Android 4.0.4)
- two different Samsung Galaxy S3 phones (Android 4.1.2)
- Samsung Galaxy Tab 2 10.1 (Android 4.0.4)
So this is not only Samsung related problem.
In our case the problem has started to occur after 2-10 days after rebooting phone.
For example today I was 50 kilometers from home but it said my location was at home. Then I shut down WLAN and GPS and started Google maps and it showed correct location. After that I checked the location from our app and it said again that my location was at home.
- HTC Desire S (Android 4.0.4)
- two different Samsung Galaxy S3 phones (Android 4.1.2)
- Samsung Galaxy Tab 2 10.1 (Android 4.0.4)
So this is not only Samsung related problem.
In our case the problem has started to occur after 2-10 days after rebooting phone.
For example today I was 50 kilometers from home but it said my location was at home. Then I shut down WLAN and GPS and started Google maps and it showed correct location. After that I checked the location from our app and it said again that my location was at home.
jp...@gmail.com <jp...@gmail.com> #5
Same problem has happened in:
- Galaxy S2
- Galaxy S2 plus
- Galaxy S3
- Galaxy S4
- Galaxy S2
- Galaxy S2 plus
- Galaxy S3
- Galaxy S4
lh...@gmail.com <lh...@gmail.com> #6
Regarding the Google Maps; I guess it is using the Google Play Location API. I did some small test app to compare results; the Google Play API does even deliver more accurate results and usually has a slightly different location than using the native Android Location API. The location provider returned by Google Play is named "fused", so it's some internal plugin.
That's most probably the reason Google Maps is still reporting accurate results and does not update the "network" location provider as it simply not uses it.
As soon as my "network" provider does not return anything anymore, I am going to doublecheck if the Google Play API still returns valid results.
Drawback with Google Play API: Only available on >=2.2, only available when latest Google Play installed. For me, can't use...
That's most probably the reason Google Maps is still reporting accurate results and does not update the "network" location provider as it simply not uses it.
As soon as my "network" provider does not return anything anymore, I am going to doublecheck if the Google Play API still returns valid results.
Drawback with Google Play API: Only available on >=2.2, only available when latest Google Play installed. For me, can't use...
ay...@gmail.com <ay...@gmail.com> #7
This is unacceptable.
I have an app on version 2.2 that works great, and on 4.2 i experience this issue.
If there is no fix for this, then they should deprecate the requestLocationUpdates method.
Can someone from google please respond with root cause and fix for this.
I have an app on version 2.2 that works great, and on 4.2 i experience this issue.
If there is no fix for this, then they should deprecate the requestLocationUpdates method.
Can someone from google please respond with root cause and fix for this.
am...@gmail.com <am...@gmail.com> #8
In response to #1, this cannot be reproduced on the emulator as the emulator does not support the network location provider.
fo...@gmail.com <fo...@gmail.com> #9
Side note: Issue 36949180 (http://code.google.com/p/android/issues/detail?id=55896 ) seems to be very closely connected to this one, but got closed (wrong forum).
ry...@gmail.com <ry...@gmail.com> #10
I set up a very basic apk which tries to get location using native network provider and Play API; timeouts after 10 seconds: http://www.jav.net/lt/LocationTester.apk
Pressing "Start" button starts to get the location.
After a couple of days without device reboot, "network" provider times out; can see that location age gets really old and not refreshed. Play API still responding with accurate up-to-date locations.
At that time, basically all weather widgets, location-based apps cease to work or report false locations.
I checking status on a number of devices now, including Nexus 7 (Wifi only, at home), Galaxy S3. As I don't own a ASOP Nexus 4 and could use real-world scenario, I'm thinking to put some ASOP build onto my old Galaxy S2 and test it there, too.
It's hard to provide much more information to that topic. Would it help if this apk regulary (each minute?) tries to get position and, if detected timeout/no call to onLocationChanged(), tries to capture the device system log?
Regards,
Oliver
Pressing "Start" button starts to get the location.
After a couple of days without device reboot, "network" provider times out; can see that location age gets really old and not refreshed. Play API still responding with accurate up-to-date locations.
At that time, basically all weather widgets, location-based apps cease to work or report false locations.
I checking status on a number of devices now, including Nexus 7 (Wifi only, at home), Galaxy S3. As I don't own a ASOP Nexus 4 and could use real-world scenario, I'm thinking to put some ASOP build onto my old Galaxy S2 and test it there, too.
It's hard to provide much more information to that topic. Would it help if this apk regulary (each minute?) tries to get position and, if detected timeout/no call to onLocationChanged(), tries to capture the device system log?
Regards,
Oliver
jr...@gmail.com <jr...@gmail.com> #11
As reported by other users I've tested my application with Sony & HTC devices with Android 4.0.4/4.0.3 as well, The issue replicates and location updates to my registered listeners stop after 3-4 days itself.
After the issue starts coming, re-installation or any setting change doesn't help at all, until we re-boot the device. After device reboots it starts to call the listener with location updates till next 3-4 days.
Finding out no other solution through Android Location APIs, I tried Google Play Service locations and this issue is not faced by the api. And the app runs fine for days without interruption. Though it seemingly has other issue where old version PlayService was working in Android 2.3.7 Sony device but the latest version has broken something and hence the updates fail to reach (It gives some DB Schema error).
Regards
Rishabh
After the issue starts coming, re-installation or any setting change doesn't help at all, until we re-boot the device. After device reboots it starts to call the listener with location updates till next 3-4 days.
Finding out no other solution through Android Location APIs, I tried Google Play Service locations and this issue is not faced by the api. And the app runs fine for days without interruption. Though it seemingly has other issue where old version PlayService was working in Android 2.3.7 Sony device but the latest version has broken something and hence the updates fail to reach (It gives some DB Schema error).
Regards
Rishabh
ma...@gmail.com <ma...@gmail.com> #12
I have the same issue as well. I have an app that notifies the user when they arrive or depart a targeted location. Using NETWORK_PROVIDER in a Service, I connect to my server, and get a list of nearby locations. If there are locations nearby, I remove the listener and switch to the GPS_PROVIDER to double check their location and notify them if they are truly going to that location. We have hundreds of thousands of users who are experiencing this issue in the 4.1.x and 4.2.x software range. In 2.3.x it works great. I see reports all over stack overflow and other sites. I'm hoping that we can come up with a way to fix this issue, even if it is a hack. Right now we are relying only on GPS_PROVIDER and obviously, this sucks down the battery way too fast.
ay...@gmail.com <ay...@gmail.com> #13
We have used the fused location provider , and it does not retrieve location updates on mobile network.
We have also tested the sample app (LocationUpdates) shared on developer site and it also has a similat behaviour.
It woks fine only when on wifi or gps.
Tested on following devices
Samsung S3 , S4 and HTC One
Please fix this as the apps rely heavily on location updates.
We have also tested the sample app (LocationUpdates) shared on developer site and it also has a similat behaviour.
It woks fine only when on wifi or gps.
Tested on following devices
Samsung S3 , S4 and HTC One
Please fix this as the apps rely heavily on location updates.
er...@gmail.com <er...@gmail.com> #14
We are preparing an application (Family Watch), which is heavily dependent on the continuous collection of location data. We really appreciated the possibility offered to us by the newly introduced fused location provider, but as other guys here, we have problem. As soon as the mobile phone is out of GPS and WiFi signal range (e.g. building in country or train). The provider stops give requested updates and until it gets GPS or WiFi it is not invoked (it does ignore the requested polling interval). It is really a shame because the promising tool is simply not possible to use. And frankly this behavior is in contradiction to the promised feature.
We tested also following devices: Samsung Galaxy S (2.3.6), ZTE Skate pro (4.0.4) and SONY Xperia J (4.1.2), Huawei Ascend Y300 with the same results regardless of setting of the priority (PRIORITY_HIGH_ACCURACY or PRIORITY_BALANCED_POWER_ACCURACY). All devices had access to all sources of localization data (GPS AND GOOGLE) in settings.
Google Play services version code 3225100 (Google play version 4.3.11).
We tested also following devices: Samsung Galaxy S (2.3.6), ZTE Skate pro (4.0.4) and SONY Xperia J (4.1.2), Huawei Ascend Y300 with the same results regardless of setting of the priority (PRIORITY_HIGH_ACCURACY or PRIORITY_BALANCED_POWER_ACCURACY). All devices had access to all sources of localization data (GPS AND GOOGLE) in settings.
Google Play services version code 3225100 (Google play version 4.3.11).
mr...@gmail.com <mr...@gmail.com> #15
I have done some tests with my S3 running 4.1.2
1. Network provider currently does not show updated position.
2. I uninstalled latest Google Play Services app and rebooted - made no difference. The network provider got one lock, but then does not get subsequent locations.
3. I disabled the Google Play Services and rebooted.
4. The network provider now updates locations whenever I move around.
5. Re-enable Google Play Services and update to latest version (because phone wont stop whining about it until I do) - Network provider stops working.
Google Maps works fine because they are using LocationClient in Play Services. Seems to be an introduced bug in LocationManager caused by something in latest Play Services.
This is a big issue for us, because we need to know employee location and we cannot rely just on GPS locks.
1. Network provider currently does not show updated position.
2. I uninstalled latest Google Play Services app and rebooted - made no difference. The network provider got one lock, but then does not get subsequent locations.
3. I disabled the Google Play Services and rebooted.
4. The network provider now updates locations whenever I move around.
5. Re-enable Google Play Services and update to latest version (because phone wont stop whining about it until I do) - Network provider stops working.
Google Maps works fine because they are using LocationClient in Play Services. Seems to be an introduced bug in LocationManager caused by something in latest Play Services.
This is a big issue for us, because we need to know employee location and we cannot rely just on GPS locks.
lh...@gmail.com <lh...@gmail.com> #16
I'm experiencing the exact same problem on many 4.x devices, like HTC sensation (4.0.3) and Nexus 10 (4.2.1)
After about a week, calling LocationManager.requestLocationUpdates with NETWORK_PROVIDER doesn't provide locations anymore and the only way to have it work again is a device reboot. In the meantime, GPS_PROVIDER and and Google Maps (without GPS) still work.
An interesting sidenode: Nexus 4 running 4.3 seems immune to this as I have never witnessed the problem with uptimes > 2 weeks, but it may just be a coincidence.
After about a week, calling LocationManager.requestLocationUpdates with NETWORK_PROVIDER doesn't provide locations anymore and the only way to have it work again is a device reboot. In the meantime, GPS_PROVIDER and and Google Maps (without GPS) still work.
An interesting sidenode: Nexus 4 running 4.3 seems immune to this as I have never witnessed the problem with uptimes > 2 weeks, but it may just be a coincidence.
si...@gmail.com <si...@gmail.com> #17
I am experiencing this issue as well. I never noticed it until I turned satellites off today. Rebooting the device resolved the issue.
Samsung S3, S4, Note 2 . All running JellyBean from different carriers.
Samsung S3, S4, Note 2 . All running JellyBean from different carriers.
js...@google.com <js...@google.com> #19
Me too experiencing this issue as well. Rebooting the device resolved the issue. Samsung Note running JellyBean 4.1.2
jb...@outlook.com.au <jb...@outlook.com.au> #20
We are also experiencing the same issue on Android 4.X, with FUSED location provider.
lh...@gmail.com <lh...@gmail.com> #21
Fused location provider is part of Google Play Services and not part of AOSP Android - you need to report bugs with that elsewhere. Unfortunately there doesn't seem to be an appropriate place to report bugs with Play Services. Sorry.
fr...@gmail.com <fr...@gmail.com> #22
fyi - I opened an Android StackExchange question asking where Google Play Services issues should be reported, since all known existing support forms seem to be inappropriate:
http://android.stackexchange.com/questions/53354/where-should-issues-with-google-play-services-e-g-fused-location-provider-be
No responses yet. You might consider upvoting it if you have the same question.
No responses yet. You might consider upvoting it if you have the same question.
ma...@google.com <ma...@google.com> #23
Is everyone seeing the following backtrace concerning this issue? I want to gain some confidence that what we're seeing is the same concerning fused location provider.
E/AndroidRuntime( 2316): at com.android.server.LocationManagerService.requestLocationUpdates(LocationManagerService.java:1316)
E/AndroidRuntime( 2316): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:836)
E/AndroidRuntime( 2316): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:461)
E/AndroidRuntime( 2316): at com.android.location.fused.FusionEngine.enableProvider(FusionEngine.java:138)
E/AndroidRuntime( 2316): at com.android.location.fused.FusionEngine.updateRequirements(FusionEngine.java:191)
E/AndroidRuntime( 2316): at com.android.location.fused.FusionEngine.setRequest(FusionEngine.java:114)
E/AndroidRuntime( 2316): at com.android.location.fused.FusedLocationProvider$2.handleMessage(FusedLocationProvider.java:98)
E/AndroidRuntime( 2316): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2316): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2316): at com.android.server.LocationManagerService.requestLocationUpdates(LocationManagerService.java:1316)
E/AndroidRuntime( 2316): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:836)
E/AndroidRuntime( 2316): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:461)
E/AndroidRuntime( 2316): at com.android.location.fused.FusionEngine.enableProvider(FusionEngine.java:138)
E/AndroidRuntime( 2316): at com.android.location.fused.FusionEngine.updateRequirements(FusionEngine.java:191)
E/AndroidRuntime( 2316): at com.android.location.fused.FusionEngine.setRequest(FusionEngine.java:114)
E/AndroidRuntime( 2316): at com.android.location.fused.FusedLocationProvider$2.handleMessage(FusedLocationProvider.java:98)
E/AndroidRuntime( 2316): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2316): at android.os.Looper.loop(Looper.java:137)
en...@gmail.com <en...@gmail.com> #24
F*** you google. Last android I ever bought| Getting same behaviour on Huawei y300, What a shame!
ry...@gmail.com <ry...@gmail.com> #25
We are also experiencing the same issue on JellyBean devices, I hope Google will fix this issue soon, it is very annoying..
si...@gmail.com <si...@gmail.com> #26
We require to locate the user location either by GPS or by network provider.
Please fix this bug ASAP as this is very annoying and frustrating...
Please fix this bug ASAP as this is very annoying and frustrating...
Description
I/FFmpegExtractor( 1927): android-source:0x4314bba0
I/Mali (14154): Mali API Version : 401
I/Mali (14154): Mali REVISION: Linux-r4p0-00rel0 BUILD_DATE: 2014-07-08 17:50:42
I/OpenGLRenderer(14154): Initialized EGL, version 1.4
I/FFMPEG ( 1927): Input #0, ogg, from 'android-source:0x4314bba0':
I/FFMPEG ( 1927): Duration: 00:02:44.87, start: 0.000000, bitrate: 60 kb/s
I/FFMPEG ( 1927): Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
I/FFMPEG ( 1927): Metadata:
I/FFMPEG ( 1927): ENCODER : opusenc from opus-tools 0.1.9
I/FFMPEG ( 1927): ENCODER_OPTIONS : --bitrate 65
I/FFMPEG ( 1927): DATE : 2014
I/FFMPEG ( 1927): PERFORMER : [not relevant]
I/FFMPEG ( 1927): track : [not relevant]
I/FFMPEG ( 1927): ALBUM : [not relevant]
I/FFMPEG ( 1927): GENRE : [not relevant]
I/FFMPEG ( 1927): disc : [not relevant]
I/MediaExtractor( 1927): Use extended extractor for the special mime(application/ogg) or codec
I/Keyboard.Facilitator( 2678): onFinishInput()
I/FFmpegExtractor( 1927): the duration is 00:02:44.87
I/FFmpegExtractor( 1927): stream_index: 0
D/FFmpegExtractor( 1927): unsuppoted codec(opus), but give it a chance
I/FFmpegExtractor( 1927): support the codec(opus)
I/hexdump ( 1927): 00000000: 4f 70 75 73 48 65 61 64 01 02 64 01 44 ac 00 00 OpusHead..d.D...
I/hexdump ( 1927): 00000010: 00 00 00 ...
D/FFmpegExtractor( 1927): unsuppoted audio codec(id:1330664787, name:opus), but give it a chance
D/FFmpegExtractor( 1927): bit_rate: 0, sample_rate: 48000, channels: 2, bits_per_coded_sample: 0, block_align: 0 bits_per_raw_sample: 0, sample_format: 8
I/FFmpegExtractor( 1927): the time is 00:02:44.87
D/FFmpegExtractor( 1927): Reader thread starting
D/FFmpegExtractor( 1927): supported mime: application/ogg
This means Opus is still somehow supported in an Ogg container ("unsupported codec, but giving it a chance"), unlike what
This also shows that the metadata can be parsed by FFMPEG (apparently) but not by the MediaScanner.
A workaround to get the MediaScanner to include .opus files is renaming them to .ogg (I hoped the metadata system was the same, but it turns out Opus invented it's own). Applications (like Google Music) will recognize and play the file, but without metadata (as "unknown artist" etc.).
Digging in the source (even the latest M preview code) it's clear that Opus really isn't supported in MediaScanner: .opus files simply aren't recognized (see
This request is about proper support for .opus files in the MediaScanner, so they are recognized with all tags like any other file, so applications can support Opus transparently.
Note: I have tested this on CyanogenMod 12 (Android 5.1).