To open google earth with a kml from code
it's so easy . just with the nect code
File KML = new File("/sdcard/doc.kml");
Intent i = getPackageManager().getLaunchIntentForPackage("com.google.earth"); i.setDataAndType(Uri.fromFile(KML), "xml");
startActivity(i);