Check lines 37 and 39 in your pastebin code. At line 37 you are calling StartUpdatingLocation and at line 39 you are hooking to the UpdatedLocation event. This should be done in reverse order.
Dimitris Tavlikos Software Developer Email: [email protected] Twitter: http://twitter.com/#!/dtavlikos Blog: http://software.tavlikos.com On 29 Nov 2011, at 10:36 AM, Mittchel debaass wrote: > Hi Dimitris, > > Thanks for your quick response. > > In my code I am first going threw the UpdatedLocation event and after that > I'm calling StartUpdatingLocation() so I don't quite get what you think I'm > doing wrong here. > > Accelerometer? Never heard of that, I thought this feature was just standard > inside the LocationManager of the iOS SDK. I do understand that the accuracy > isn't 1 meter, but just setted the filter there to get quick responses > walking around in the building, which didn't quite succeed. > > Your message contains a lot of information, but the first part I don't > understand. I think I'm doing the updatedLocation right on this way. I'm > first hooking into that event and later I'm calling the startupdatinglocation > method. > > Yours sincerely, > Mittchel > > 2011/11/29 Dimitris Tavlikos <[email protected]> > Hi Mittchel, > > There is surely something you should change in your code. You should first > hook into the UpdatedLocation event and then call StartUpdatingLocation. > > Other than that, subsequently calling StartUpdatingLocation does not mean > that the UpdatedLocation event will be triggered. I believe it has no actual > effect. > You could use the accelerometer to detect user movement (along with some > complicated math if you want to translate that into location), but again, you > cannot rely on location updates being delivered frequently (frequently = < 1 > sec). > Furthermore, do not expect less than 10m accuracy from GPS. > > Dimitris Tavlikos > Software Developer > Email: [email protected] > Twitter: http://twitter.com/#!/dtavlikos > Blog: http://software.tavlikos.com > > > > > > > On 29 Nov 2011, at 10:09 AM, Mittchel debaass wrote: > > > Hello everyone, > > > > I'm trying to work with the LocationManager and almost everything works > > perfectly.. there is only one thing that isn't working for some reason. I'm > > trying to update the location as soon as the user moves, but for some > > reason it doesn't get updated.. I hope someone can help me out with this > > and tell me what the problem is because this feature is necessary for me > > haha. > > > > The code can be found here: http://pastebin.com/PgBpcEKb > > _______________________________________________ > > MonoTouch mailing list > > [email protected] > > http://lists.ximian.com/mailman/listinfo/monotouch > > _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
