[android-developers] Re: GPS Issue with Android Marshmallow

2016-02-29 Thread gjs
Hi,

I checked https://code.google.com/p/android/issues/detail?id=190376 and 
also tested with Nexus 5 running Android V6.0.1 (that's the device most 
mentioned in the ticket) and GPS is working ok for me on the Nexus 5. GPS 
is also working ok for me with Android V6 on Nexus 5X, 6, 6P, 7 & 9. 

However I don't use the Location API class much and where possible prefer 
to use the lower level NMEA listener interface - 
http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html

You could use the NMEA listener interface as a temporary work around and 
create your own Location objects from the lower level NMEA data (this works 
fine, I also do this when using external Bluetooth GPS receivers with 
Android devices - converting GPS NMEA data back into Location objects, you 
just need to do the relevant data conversions between the different 
measurement units...)

Regards



On Tuesday, March 1, 2016 at 1:39:35 AM UTC+11, Rodrigo Saad wrote:
>
> Hello,
>
> We are experiencing problems with GPS in almost all smartphones (Nexus, 
> Mogo-G 2nd, Moto-G 3nd, Moto-X) with Android 6 (Marshmallow). In our case, 
> it does not acquire a good accuracy and, consequently, it does not return 
> the speed anymore (location.getSpeed). There is an open ticket but without 
> any update from google since last December (
> https://code.google.com/p/android/issues/detail?id=190376). 
>
> Anyone else having the same problem? Any advice to solve it, at least 
> temporarily? 
>
> Cheers,
>
> Rodrigo Saad
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/dbf62523-d8ed-4926-9f1a-dbc83195d9fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: GPS Issue with Android Marshmallow

2016-03-01 Thread Rodrigo Saad
Hello Gary,

Thank you for your reply.

>
> I checked https://code.google.com/p/android/issues/detail?id=190376 and
> also tested with Nexus 5 running Android V6.0.1 (that's the device most
> mentioned in the ticket) and GPS is working ok for me on the Nexus 5. GPS
> is also working ok for me with Android V6 on Nexus 5X, 6, 6P, 7 & 9.
>

Could you check this app (http://app.trekken.com.br) to see if it works? It
should start automatically and record your trip while you are driving.


> However I don't use the Location API class much and where possible prefer
> to use the lower level NMEA listener interface -
> http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
>

I believe you are right, it is a FusedLocationApi bug related. I will make
some tests with the GPS_Provider to check it out. Until Android 6,
FusedLocation worked pretty good, giving low accuracy and speed.  The app I
mentioned before uses FusedLocation and it is not working anymore.


> You could use the NMEA listener interface as a temporary work around and
> create your own Location objects from the lower level NMEA data (this works
> fine, I also do this when using external Bluetooth GPS receivers with
> Android devices - converting GPS NMEA data back into Location objects, you
> just need to do the relevant data conversions between the different
> measurement units...)
>

Regarding the NMEA 0183, I read over the Internet that some manufactures
define its own codes. Is it a problem with android? Would you have to take
into account different manufactures codes to parse NMEA sentences ?

Cheers,

Rodrigo


> Regards
>
>
>
> On Tuesday, March 1, 2016 at 1:39:35 AM UTC+11, Rodrigo Saad wrote:
>>
>> Hello,
>>
>> We are experiencing problems with GPS in almost all smartphones (Nexus,
>> Mogo-G 2nd, Moto-G 3nd, Moto-X) with Android 6 (Marshmallow). In our case,
>> it does not acquire a good accuracy and, consequently, it does not return
>> the speed anymore (location.getSpeed). There is an open ticket but without
>> any update from google since last December (
>> https://code.google.com/p/android/issues/detail?id=190376).
>>
>> Anyone else having the same problem? Any advice to solve it, at least
>> temporarily?
>>
>> Cheers,
>>
>> Rodrigo Saad
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/2He1mUMH6lc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/dbf62523-d8ed-4926-9f1a-dbc83195d9fc%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANzvxAFb7%3D6oqimNjn7cpuODWY2m%2B0%3DQMWXcGgDVQ6GUGLpuzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: GPS Issue with Android Marshmallow

2016-03-02 Thread Rodrigo Saad
Hello,

I'm sorry, I meant "high accuracy and speed values (getSpeed returning
values different than 0)" in my previous email.

>
> I believe you are right, it is a FusedLocationApi bug related. I will make
> some tests with the GPS_Provider to check it out. Until Android 6,
> FusedLocation worked pretty good, giving low accuracy and speed.  The app I
> mentioned before uses FusedLocation and it is not working anymore.
>
>
Cheers,

Rodrigo


On Tue, Mar 1, 2016 at 5:08 PM, Rodrigo Saad  wrote:

> Hello Gary,
>
> Thank you for your reply.
>
>>
>> I checked https://code.google.com/p/android/issues/detail?id=190376 and
>> also tested with Nexus 5 running Android V6.0.1 (that's the device most
>> mentioned in the ticket) and GPS is working ok for me on the Nexus 5. GPS
>> is also working ok for me with Android V6 on Nexus 5X, 6, 6P, 7 & 9.
>>
>
> Could you check this app (http://app.trekken.com.br) to see if it works?
> It should start automatically and record your trip while you are driving.
>
>
>> However I don't use the Location API class much and where possible prefer
>> to use the lower level NMEA listener interface -
>> http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
>>
>
> I believe you are right, it is a FusedLocationApi bug related. I will make
> some tests with the GPS_Provider to check it out. Until Android 6,
> FusedLocation worked pretty good, giving low accuracy and speed.  The app I
> mentioned before uses FusedLocation and it is not working anymore.
>
>
>> You could use the NMEA listener interface as a temporary work around and
>> create your own Location objects from the lower level NMEA data (this works
>> fine, I also do this when using external Bluetooth GPS receivers with
>> Android devices - converting GPS NMEA data back into Location objects, you
>> just need to do the relevant data conversions between the different
>> measurement units...)
>>
>
> Regarding the NMEA 0183, I read over the Internet that some manufactures
> define its own codes. Is it a problem with android? Would you have to take
> into account different manufactures codes to parse NMEA sentences ?
>
> Cheers,
>
> Rodrigo
>
>
>> Regards
>>
>>
>>
>> On Tuesday, March 1, 2016 at 1:39:35 AM UTC+11, Rodrigo Saad wrote:
>>>
>>> Hello,
>>>
>>> We are experiencing problems with GPS in almost all smartphones (Nexus,
>>> Mogo-G 2nd, Moto-G 3nd, Moto-X) with Android 6 (Marshmallow). In our case,
>>> it does not acquire a good accuracy and, consequently, it does not return
>>> the speed anymore (location.getSpeed). There is an open ticket but without
>>> any update from google since last December (
>>> https://code.google.com/p/android/issues/detail?id=190376).
>>>
>>> Anyone else having the same problem? Any advice to solve it, at least
>>> temporarily?
>>>
>>> Cheers,
>>>
>>> Rodrigo Saad
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/android-developers/2He1mUMH6lc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/dbf62523-d8ed-4926-9f1a-dbc83195d9fc%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANzvxAHDS3PoSYdY7VyWuqonH-_J5ARXRWDV-4WC4N_a8mecyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: GPS Issue with Android Marshmallow

2016-03-02 Thread gjs
Hi,

re : Could you check this app (http://app.trekken.com.br) to see if it 
works? It should start automatically and record your trip while you are 
driving. 

No sorry, I actually develop my own GPS related app(s) and one of these 
already provides the same / similar functionality & is working ok with 
Android 6 on various devices. (On the Play store it already say - Attention: 
Trekken is not fully supported by the Android 6.0 / Marshmallow.)

re: ...Until Android 6, FusedLocation worked pretty good, giving low 
accuracy and speed.

Personally I think FusedLocation sux so I won't use it. My opinion about 
this was hardened when using the Google PIxel C tablet which actually 
'tricks' app's into thinking it has support for 'High Accuracy' Location 
but in fact this device has no GPS receiver at all (WTF it lies!!!) For the 
Pixel C (my app) will connect to & use an external Bluetooth GPS receiver 
instead...

re: Regarding the NMEA 0183, I read over the Internet that some 
manufactures define its own codes. Is it a problem with android? Would you 
have to take into account different manufactures codes to parse NMEA 
sentences ?

No it is not a problem you just use the few (standard) NMEA sentences such 
$GPRMC, $GPGGA, $GPGSA, $GPGSV (&/or their $GN equivalents) to extract the 
relevant location details (and convert accordingly) and usually just ignore 
any others NMEA sentences that might be specific to particular GPS receiver 
chips. There used to be some older Android devices that did not return any 
data via the NMEA listener interface - 
http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
 but 
most seem to these day, well except for the Pixel C tablet.

re: I'm sorry, I meant "high accuracy and speed values (getSpeed returning 
values different than 0)" in my previous email.

ok

Regards

On Wednesday, March 2, 2016 at 8:16:35 AM UTC+11, Rodrigo Saad wrote:
>
> Hello Gary,
>
> Thank you for your reply. 
>
>>
>> I checked https://code.google.com/p/android/issues/detail?id=190376 and 
>> also tested with Nexus 5 running Android V6.0.1 (that's the device most 
>> mentioned in the ticket) and GPS is working ok for me on the Nexus 5. GPS 
>> is also working ok for me with Android V6 on Nexus 5X, 6, 6P, 7 & 9. 
>>
>
> Could you check this app (http://app.trekken.com.br) to see if it works? 
> It should start automatically and record your trip while you are driving. 
>
>
>> However I don't use the Location API class much and where possible prefer 
>> to use the lower level NMEA listener interface - 
>> http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
>>
>
> I believe you are right, it is a FusedLocationApi bug related. I will make 
> some tests with the GPS_Provider to check it out. Until Android 6, 
> FusedLocation worked pretty good, giving low accuracy and speed.  The app I 
> mentioned before uses FusedLocation and it is not working anymore. 
>
>
>> You could use the NMEA listener interface as a temporary work around and 
>> create your own Location objects from the lower level NMEA data (this works 
>> fine, I also do this when using external Bluetooth GPS receivers with 
>> Android devices - converting GPS NMEA data back into Location objects, you 
>> just need to do the relevant data conversions between the different 
>> measurement units...)
>>
>
> Regarding the NMEA 0183, I read over the Internet that some manufactures 
> define its own codes. Is it a problem with android? Would you have to take 
> into account different manufactures codes to parse NMEA sentences ? 
>  
> Cheers,
>
> Rodrigo
>
>
>> Regards
>>
>>
>>
>> On Tuesday, March 1, 2016 at 1:39:35 AM UTC+11, Rodrigo Saad wrote:
>>>
>>> Hello,
>>>
>>> We are experiencing problems with GPS in almost all smartphones (Nexus, 
>>> Mogo-G 2nd, Moto-G 3nd, Moto-X) with Android 6 (Marshmallow). In our case, 
>>> it does not acquire a good accuracy and, consequently, it does not return 
>>> the speed anymore (location.getSpeed). There is an open ticket but without 
>>> any update from google since last December (
>>> https://code.google.com/p/android/issues/detail?id=190376). 
>>>
>>> Anyone else having the same problem? Any advice to solve it, at least 
>>> temporarily? 
>>>
>>> Cheers,
>>>
>>> Rodrigo Saad
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/android-developers/2He1mUMH6lc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> android-developers+unsubscr...@googlegroups.com .
>> To post to this group, send email to android-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/dbf62523-d8ed-4926-9f1a-dbc83195d9fc%40googlegroups.