public boolean parseGeoJSON(File file){
  mLocalFile=file;
  try {
    FileInputStream input=new FileInputStream(mLocalFile);
    JsonParser parser=new JsonParser();
    JsonElement json=parser.parse(new InputStreamReader(input));
    input.close();
    return parseGeoJSON(json.getAsJsonObject());
  }
 catch (  Exception e) {
    e.printStackTrace();
    return false;
  }
}

public boolean parseGeoJSON ( File file ) { mLocalFile = file ; try { FileInputStream input = new FileInputStream ( mLocalFile ) ; JsonParser parser = new JsonParser ( ) ; JsonElement json = parser . parse ( new InputStreamReader ( input ) ) ; input . close ( ) ; return parseGeoJSON ( json . getAsJsonObject ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return false ; } }
parse a geojson file
