I'm developing a WIFI positioning system. Location of a user is determined based on signal strength value (RSSI) from each access point.
My application should collect WIFI signal strength from each access point periodically and update marker on a map.
My application is able to collect wifi signal strength from each access point. However, I face problem in collecting signal strength periodically (eg: 2 seconds). I also face problem in updating marker on a map periodically. FYI, I successfully overlay marker on top of a custom map.
Solution: Timer? Handler?
I need your suggestion and help. Thanks in advance.
You should use a Handler for this. See this topic: Repeat a task with a time delay?
To actually update your 'markers' depends on how you implemented them. Are they items in an ItemizedOverlay? If so you can change the drawable you use to display them by calling overlayItem.setMarker(drawableMarker)
.