How do I create an "Open" and "Closed" indicator?
<p>I have a MapView. Within this MapView I have MapOverlays. The MapOverlays have two icons plotted on the map. There is one GREEN and one RED. I want to make these into OPEN and CLOSED indicators.</p>

<p>I want to read a "time" (myTime for instance) that I have setted and check that with SystemTime to see if it is open or closed.</p>

<p>Pseudocode: IF myTime == SystemTime { shop indicator turns into GREEN marker } ELSE  { shop indicator turn into RED market }.</p>

<p>I have the timings for the two shops I want to add to the MapView.</p>

<p>How would I write this?</p>

<p>Here is an image for clarification:</p>

<p><img src="http://i.stack.imgur.com/JgfnM.png" alt="enter image description here"></p>

<pre><code>public void mapOverlayItems() {

    // Creates a marker based on lat/long values on MapView

            // DIVIDER markerGREEN
    MapView mapView = (MapView) findViewById(R.id.mapView);
    mapOverlays = mapView.getOverlays();
    Drawable drawableBar = getResources().getDrawable(
            R.drawable.markergreen);
    mapOverlayBar = new MapOverlayActivity(drawableBar, mapView);


    GeoPoint sirius = new GeoPoint((int) (52.63274 * 1E6),
            (int) (-1.13145 * 1E6));
    OverlayItem siriusbaricon = new OverlayItem(sirius, "Sirius", "Bar");
    mapOverlayBar.addOverlay(siriusbaricon);

    mapOverlays.add(mapOverlayBar);
    mapView.invalidate();

  //DIVIDER markerRed

Drawable drawableBank = getResources()
            .getDrawable(R.drawable.markerred);
    mapOverlayBanks = new MapOverlayActivity(drawableBank, mapView);
    GeoPoint natwest = new GeoPoint((int) (52.63440 * 1E6),
            (int) (-1.1314 * 1E6));
    OverlayItem natwesticon = new OverlayItem(natwest, "Natwest", "Bank");
    mapOverlayBanks.addOverlay(natwesticon);
    mapOverlays.add(mapOverlayBanks);
    mapView.invalidate();
}
</code></pre>

<p>Thank you for your time.</p>
