protected void onPostExecute(Boolean result) { if (ruta != null) { activity.mapa.clear(); activity.mapa.addMarker(new MarkerOptions().position(activity.markerPosicion.getPosition())); polylineSelected = MapaService.getPolylines(ruta.getListLocation()); activity.mapa.addPolyline(polylineSelected); MapaService.addMarkeresPositionRoutes(activity.mapa, ruta); } activity.dismissProgress(); }
@Override protected void onPreExecute() { // mostramos el progress Dialog activity.showProgressDialog(); }