title: getting maps to accept a dynamically generated KML file?
body: <p>I have a button that launches the google maps app on my device via an intent. I want to be able to pass it a php page that generates a KML file.</p>
  
  <p>I have done this on a website before using the googlemaps api in JS - but it doesn't seem to work on Android.</p>
  
  <p>My php file is as follows;</p>
  
  <pre><code>&lt;?php
       echo '&lt;kml xmlns="http://www.google.com/earth/kml/2"&gt;';
       echo '&lt;Placemark&gt;';
       echo '&lt;name&gt;Google Inc.&lt;/name&gt;';
       echo '&lt;description&gt;1600 Amphitheatre Parkway, Mountain View, CA 94043&lt;/description&gt;';
       echo '&lt;Point&gt;';
       echo '&lt;coordinates&gt;-122.0841430, 37.4219720, 0&lt;/coordinates&gt;';
       echo '&lt;/Point&gt;';
       echo '&lt;/Placemark&gt;';
       echo '&lt;/kml&gt;';
  ?&gt;  
  </code></pre>
  
  <p>Launching with:</p>
  
  <pre><code>final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
  Uri.parse("geo:0,0?q=http://website.com/kml_gen.php"));
  startActivity(myIntent);
  </code></pre>
  
  <p>It launches maps, finds the file - but won't display it 'because it contains errors'.</p>
  
  <p>Is this just not possible, or are there other ways to construct the intent that might work?</p>