Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

It prints me pointer repeatedly

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my main class.It works fine.But when i moving it repeatdly prints the current location pointer.I mean after i move to new location it doesn't remove old location pointer.It prints me pointer in both location.So when i move with phone it shows me the pointer as a line.How to remove the old Pointer ?



 
Tim Moores
Bartender
Posts: 2855
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I only see the code adding overlays; where are any being removed?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what about if i make the variables Drawable drawable,CustomItemizedOverlay itemizedOverlay gloabal?
Is it correct ?
 
Tim Moores
Bartender
Posts: 2855
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what their visibility has to do with adding vs. removing overlays?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it ok removing overlay starting onlocationchange method.So each time location change it removes tha old overlay nad print a new one.is it correct ?


 
Tim Moores
Bartender
Posts: 2855
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it work?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
unable to check.Because i am at now home.So i have to walk now as i don't have Bike now.
I can test tomorrow morning when i am travelling to office.Anyway can you tell me is it the correct way ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic