Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Nonexistent Marker Is Added To Google Maps Android Firebase[VIDEO]

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am pulling marker(relic) data from firebase database then adding them to map. Also i am adding them to another hashmap for doing distance calculations with current user location.Then i calculate closest marker to user and display how far player is to that selected closest marker.When user is closer than 10 meters to marker he can remove that marker from the map.

The problem is i can remove marker from map but whenever i call db removal code somehow db listener triggers and adds Nonexistent removed marker to the map.


By the way remove db code is working.Its removing data from database succesfully.

Here there is a video of unexpected behaviour: https://streamable.com/m7e90
 
Rancher
Posts: 4936
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you trying to debug the problem?
I use print statements to show the execution flow and the values of variables as the code executes.  The print out can be seen in the logcat.
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic