Jason Delport Home

Blog Feed Blog Feed

Paxmodept Website Paxmodept Website

Contact Information


Jason Delport

+44(0)7931445721

jason@paxmodept.com

Download vCard


Mobile Portal


~mobile.paxmodept.com~
QR Code

Blog Archive & Stats


MonthPosts
June 2010(2)
May 2010(1)
April 2010(4)
February 2010(1)
January 2010(2)
December 2009(1)
November 2009(3)
October 2009(3)
September 2009(7)
August 2009(1)
July 2009(2)
June 2009(4)
May 2009(7)
April 2009(5)
March 2009(10)
February 2009(10)
January 2009(19)
December 2008(11)
November 2008(16)
October 2008(28)
September 2008(7)
August 2008(19)
July 2008(17)
June 2008(13)
May 2008(11)
April 2008(11)
March 2008(18)
February 2008(17)
January 2008(19)
December 2007(8)
November 2007(29)
October 2007(38)
September 2007(30)
August 2007(50)
July 2007(46)
June 2007(38)
May 2007(20)
April 2007(16)
March 2007(35)
February 2007(28)
January 2007(36)
December 2006(26)
November 2006(42)
October 2006(39)
September 2006(26)
August 2006(16)
July 2006(4)
Total796


© 2010 Jason Delport

Android and KML

This morning London Datastore announced that TFL had lifted all restrictions on commercial reuse of its data (via @retomeier). I love the idea of building a London transport application for Android so I started playing around with the station data which lead me to investigate how Keyhole Markup Language functions on the Android platform.

Launching the native Maps application from within a bespoke application with some KML data from the internet is really easy.

 
public class LoadActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Uri uri = Uri.parse("geo:0,0?q=http://paxmodept.com/files/office.kml");
        Intent mapIntent = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(mapIntent);        
    }
}

Best of all is that you can do the same thing by simply clicking on a KML file in the Android browser. You can try it from your Android device here. I can imagine plenty of use cases for this including store locations and favourite places.




~Add Comment~

Name
Email
Website
Website
Website
Comment (No HTML)
Human? Human?