Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

It prints me pointer repeatedly  RSS feed

 
Ranch Hand
Posts: 1290
  • 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 ?



 
Saloon Keeper
Posts: 4868
117
  • 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: 1290
  • 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
Saloon Keeper
Posts: 4868
117
  • 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: 1290
  • 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
Saloon Keeper
Posts: 4868
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it work?
 
sam liya
Ranch Hand
Posts: 1290
  • 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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!