I have an issue with the PersistedContent functionality:
I want to save a Location object as a Waypoint under the following circumstances:
- Search the Apps existing Waypoints with an Iterator and compare them by name
- If the name already exists: retrieve the existing waypoint and start an Intent
- If the name does not exist: save a new waypoint, find it with another Iterator by name and retrieve it to start an Intent
The Problem is the second Iterator that I use is always returning null. It seems as if it is not possible to use several Iterators in the same context. Also I tried reusing the first and start the iteration from scratch in the second use case, but that does not work aswell.
Anyone experienced a similar issue with the PersistedContent iterator? And if not how are you usually handling Waypoints/Courses to start Intents for navigation?