I've fixed this now. Rather embarrassingly, in my intent receiver i never actually retrieved the mgoal from the extras. So the info i was getting was just the number i initialized the variable with! Thanks for all your help!
George On Apr 23, 1:17 pm, Fuzzmonkey <she...@gmail.com> wrote: > I've added the scheme to my intent filter as following. > > proxBroadcastReceiver = new MyIntentReceiver(); > proxIntentFilter = new IntentFilter > ("android.intent.action.PROXIMITY_ALERT"); > proxIntentFilter.addDataScheme("custom"); > registerReceiver(proxBroadcastReceiver, proxIntentFilter); > > I'm now receiving the intents in my receiver again, but the intents > are still containing incorrect data. For example, here are three > proximity alerts i've added to the location manager. The numbers > before the alert info is the goal and sub goal number. These three > belong to goal 2, and are sub goals 0 - 2. If i add them in order, > that is (0, 1, 2) when the proximity alert is fired, i get goal 2, sub > goal 2 in the extras for my intent. My actual location is 2 0, and the > distance between each gps co-ordinate is relatively large. If i enter > the alerts in the manner shown below, i get the correct information, > that is, 2 0. Im assuming this is something to do with the intent / > pendingintent but can't figure out what the problem is! I just hope > it's note the location manager being massively inaccurate! > > E/LocalService( 772): 2 2 > D/LocationManager( 772): addProximityAlert: latitude = > 52.506086855802266, longitude = -2.169971466064453, radius = 100.0, > expiration = -1, intent = android.app.pendingint...@434274f8 > D/LocationManagerService( 56): addProximityAlert: latitude = > 52.506086855802266, longitude = -2.169971466064453, expiration = -1, > intent = android.app.pendingint...@43552008 > E/LocalService( 772): 2 1 > D/LocationManager( 772): addProximityAlert: latitude = > 52.48497554406308, longitude = -2.167224884033203, radius = 100.0, > expiration = -1, intent = android.app.pendingint...@43428c40 > D/LocationManagerService( 56): addProximityAlert: latitude = > 52.48497554406308, longitude = -2.167224884033203, expiration = -1, > intent = android.app.pendingint...@43482018 > E/LocalService( 772): 2 0 > D/LocationManager( 772): addProximityAlert: latitude = > 52.493667551283544, longitude = -2.1683353185653687, radius = 100.0, > expiration = -1, intent = android.app.pendingint...@4342a400 > D/LocationManagerService( 56): addProximityAlert: latitude = > 52.493667551283544, longitude = -2.1683353185653687, expiration = -1, > intent = android.app.pendingint...@4357f0c0 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---