public boolean parseKMLFile(File file){
  mLocalFile=file;
  Log.d(BonusPackHelper.LOG_TAG,"KmlProvider.parseKMLFile:" + mLocalFile.getAbsolutePath());
  InputStream stream;
  boolean ok;
  try {
    stream=new BufferedInputStream(new FileInputStream(mLocalFile));
    ok=parseKMLStream(stream,null);
    stream.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
    ok=false;
  }
  return ok;
}

public boolean parseKMLFile ( File file ) { mLocalFile = file ; Log . d ( BonusPackHelper . LOG_TAG , "KmlProvider.parseKMLFile:" + mLocalFile . getAbsolutePath ( ) ) ; InputStream stream ; boolean ok ; try { stream = new BufferedInputStream ( new FileInputStream ( mLocalFile ) ) ; ok = parseKMLStream ( stream , null ) ; stream . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; ok = false ; } return ok ; }
parse a kml document from a file , to build the kml structure .
