aspose file tools*
The moose likes Android and the fly likes It prints me pointer repeatedly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "It prints me pointer repeatedly" Watch "It prints me pointer repeatedly" New topic
Author

It prints me pointer repeatedly

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
I only see the code adding overlays; where are any being removed?
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
So what about if i make the variables Drawable drawable,CustomItemizedOverlay itemizedOverlay gloabal?
Is it correct ?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I'm not sure what their visibility has to do with adding vs. removing overlays?
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
Does it work?
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: It prints me pointer repeatedly