wchorolque / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

Always get "waiting for GPS fix..." #264

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Cannot get GPSFix status, when accessing TrackLogger.
2.
3.

What is the expected output? What do you see instead?
GPS record status always "Waiting for GPS fix 0/13" and never changes.

What version of the product are you using (See "About" screen)?
1.0.1

Make/model of your device, and Android version?
SONY Xperia C3, Android 4.3

Please provide any additional information below.

Original issue reported on code.google.com by widy.ag...@gmail.com on 16 Mar 2015 at 3:54

GoogleCodeExporter commented 9 years ago
Hi, I saw you also sent me an email where you talk about Eclipse, just to make 
sure you're seeing this problem on your actual phone, not when running the app. 
in Eclipse yeah?

Original comment by nicolas@guillaumin.me on 16 Mar 2015 at 10:36

GoogleCodeExporter commented 9 years ago
I mean, this problem is came on my actual phone. Not on eclipse. I run your 
project on Eclipse and it tested on my actual phone, not an emulator. And got 
that problem.
please help.

Original comment by widy.ag...@gmail.com on 16 Mar 2015 at 3:21

GoogleCodeExporter commented 9 years ago
Are other apps. working with the GPS? For example if you install this, does it 
work: 
https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2&hl=en ?

Original comment by nicolas@guillaumin.me on 17 Mar 2015 at 8:37

GoogleCodeExporter commented 9 years ago
sorry for late reply, sir.

i have tried other apps like GPS Status. And it works.

Original comment by widy.ag...@gmail.com on 20 Mar 2015 at 5:45

GoogleCodeExporter commented 9 years ago
Ok, well I'm not too sure what can go wrong. Would you be able to run the app. 
from Eclipse, but on your phone in debug mode and record the logcat output?

Original comment by nicolas@guillaumin.me on 20 Mar 2015 at 11:48

GoogleCodeExporter commented 9 years ago
hi, sorry for late reply.

I have been testing your app that published on PlayStore. And i got same 
problem, "waiting for GPS fix..." for a long time.

I'm using Android 4.3 on Sony Xperia C3.

And here's the logcat (see an attachment)

I think there is no warning or error on it.

But, why it doesn't work ?

Original comment by widy.ag...@gmail.com on 24 Mar 2015 at 9:57

Attachments:

GoogleCodeExporter commented 9 years ago
I have no idea why it doesn't work :) That's why I'm trying to collect more 
information.

Unfortunately the logcat output doesn't have much details. Did you run it in 
debug mode in Eclipse? It should have a lot more messages than that.

Original comment by nicolas@guillaumin.me on 24 Mar 2015 at 10:27

GoogleCodeExporter commented 9 years ago
Here is.. debug, warn, verbose from ddms.

And i attach a screenshot too.

Please help

Original comment by widy.ag...@gmail.com on 24 Mar 2015 at 5:23

Attachments:

GoogleCodeExporter commented 9 years ago
I'm sorry, I don't know what's happening. The logs should have a lot more 
information, especially lines like:

V/GpsStatusRecord(30729): Found 1 satellites. 0 used in fix. Will draw 0 bars.

That's supposed to be repeated every second or so until it can find satellites.

Could you try with logcat on the command line perhaps? Enable USB debugging on 
your phone, then run `adb logcat`, run OSMTracker and create a new track? If 
that produces more log, you can redirect the output with `adb logcat > log.txt`.

In any case that seem to be a device specific problem which might be difficult 
to fix without having access to the device itself...

Original comment by nicolas@guillaumin.me on 25 Mar 2015 at 8:58

GoogleCodeExporter commented 9 years ago
Googling for "Sony Xperia GPS problems" yield some links, perhaps some 
suggestions to try?
* https://talk.sonymobile.com/t5/Xperia-M-M-dual/Problem-with-GPS/td-p/514313
* https://talk.sonymobile.com/t5/FAQ/GPS/m-p/351902#U351902
* 
http://talk.sonymobile.com/t5/Xperia-C/GPS-not-functioning-in-Xperia-C/td-p/6904
27

Original comment by nicolas@guillaumin.me on 25 Mar 2015 at 9:01

GoogleCodeExporter commented 9 years ago
Hi, its very pleasant of you, you are so concern with user.

Ok, here is the log from adb logcat that i have tried from the command line.

This logcat was run on "create a new track"

I don't think this is GPS problem, because, i have tried other gps tracking app 
like "MyTracks" and it's work perfectly.

Please help.. i need this app.

Thank you.

Original comment by widy.ag...@gmail.com on 25 Mar 2015 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, so the log is saying that it found satellites, but that it couldn't get 
a fix for some reason. Additionally there's a message about:

Location Tracker : not allowed to initialize googlePlay service

With those other GPS apps, were you able to get a proper fix, or just some 
satellites in view?

More Googling reveal:
* http://forum.xda-developers.com/showthread.php?t=2758533
* 
http://www.androidcentral.com/psa-galaxy-nexus-gps-problems-jelly-bean-theres-ea
sy-fix

It's probably a long shot, but could you try what they suggest (disabling the 
Google Location services)?

There's also talks about using 
https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2 and 
clearing the Assisted GPS data.

Unfortunately I can't see anything wrong with OSMTracker itself, it's just 
asking Android for a GPS fix, and Android says it has satellites but no fix so 
there's not much OSMTracker can do :(

Original comment by nicolas@guillaumin.me on 25 Mar 2015 at 10:44

GoogleCodeExporter commented 9 years ago
A few other interesting log lines:

D/LocSvc_java(  950): agpsConnInfo.mIpAddr 
/8e:9963:3817:8a61:3817:8a61:5002:d7be
D/LocSvc_java(  950): call requestRouteToHostAddress failed

That could suggest that the location service tried to download Assisted GPS 
data from the internet and couldn't. Did you have a WiFi or 3G internet 
connection available?

Original comment by nicolas@guillaumin.me on 25 Mar 2015 at 10:50

GoogleCodeExporter commented 9 years ago
Hmmm.. i've wait for 25 minutes and more, and there is still 0 fix status.

And i've trying any scenarios, such as :
disable google location service, 
using wifi connection and using 3G internet connection,
unchecked and checked again Google Location Service,
go outside my house and run gpstracking,
using device only (use gps to determine my location),

But still the same issue.

when i tried "gps essential" app. i got same issue too. I got 1 visible 
sattelite and 0 userd in fix. Hmmm :-/

so..conclusion : the problem is my device?

Original comment by widy.ag...@gmail.com on 25 Mar 2015 at 12:21