I have a KML file that is generated on a server and sent to the phone with the following code:
Using java Syntax Highlighting
- Intent mapIntent = new Intent(Intent.ACTION_VIEW);
- Uri uri = Uri.parse("geo:0,0?q=http://www.example.com/dynamic.kml");
- mapIntent.setData(uri);
- startActivity(Intent.createChooser(mapIntent, "Sample Map"));
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
All is well the first time, as it creates the MapActivity and loads the KML. But I'd like to poll the server every so often, and get the latest KML. I've tried setting the Intent on the MapActivity, but it does nothing.
I thought perhaps I need to explicitly render the KML, but I can find nothing in the docs that tell me how. I really don't fancy writing my own KML renderer! Especially as there seems to be a perfectly good one that MapActivity uses.
Any help would be much appreciated.
-JD


