[mono-android] Location problems - privates look good but public	looks wrong
    Stuart Lodge 
    me at slodge.com
       
    Mon Feb  6 11:42:58 UTC 2012
    
    
  
I'm looking at some Location traces right now where the
Andtroid.Locations.Location object has good mLatitude and mLongitude
private values, but has seemingly garbage public Latitude and Longitude
property values
For example. the debug trace for the object is:
{Location[mProvider=network,mTime=1328528220606,mLatitude=51.4326621,mLongitude=-0.3436901,mHasAltitude=false,mAltitude=0.0,mHasSpeed=false,mSpeed=0.0,mHasBearing=false,mBearing=0.0,mHasAccuracy=true,mAccuracy=52.0,mExtras=Bundle[mParcelledData.dataSize=148]]}
...but the debug evaluation of properties yields:
    base: {Java.Lang.Object}
    Accuracy: 0
    Altitude: 1.58234427515848E-314
    Bearing: 0
    Extras: {Android.OS.Bundle}
    HasAccuracy: true
    HasAltitude: false
    HasBearing: false
    HasSpeed: false
    Latitude: 1.58234363880193E-314
    Longitude: 1.58234354789385E-314
    Provider: "network"
    Speed: 0
    Time: 1328528220606
Is there something I'm doing wrong to get the result? Is it something to do
with the provider being network rather than GPS?
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120206/bc96d031/attachment.html>
    
    
More information about the Monodroid
mailing list