gt:                 .setPositiveButton(ok, new DialogInterface.OnClickListener() {
context: package com.keniobyte.bruino.minsegapp.features.section_police_stations;
  
  import android.Manifest;
  import android.app.Activity;
  import android.app.AlertDialog;
  import android.content.Context;
  import android.content.DialogInterface;
  import android.content.Intent;
  import android.content.pm.PackageManager;
  import android.graphics.drawable.Drawable;
  import android.net.Uri;
  import android.os.Bundle;
  import android.provider.Settings;
  import android.support.v4.app.ActivityCompat;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.util.Log;
  import android.view.MenuItem;
  import android.view.View;
  import android.widget.Button;
  import android.widget.ProgressBar;
  import android.widget.TextView;
  
  import com.google.android.gms.maps.CameraUpdateFactory;
  import com.google.android.gms.maps.GoogleMap;
  import com.google.android.gms.maps.MapFragment;
  import com.google.android.gms.maps.OnMapReadyCallback;
  import com.google.android.gms.maps.model.LatLng;
  import com.google.android.gms.maps.model.Marker;
  import com.google.android.gms.maps.model.MarkerOptions;
  import com.google.maps.android.kml.KmlLayer;
  import com.keniobyte.bruino.minsegapp.R;
  import com.keniobyte.bruino.minsegapp.features.section_police_stations.listPoliceStations.PoliceStationsInfoActivity;
  import com.keniobyte.bruino.minsegapp.models.PoliceStation;
  import com.keniobyte.bruino.minsegapp.utils.SquareImageView;
  import com.squareup.picasso.Picasso;
  
  import org.json.JSONException;
  import org.xmlpull.v1.XmlPullParserException;
  
  import java.io.IOException;
  import java.util.ArrayList;
  
  import butterknife.BindDrawable;
  import butterknife.BindString;
  import butterknife.BindView;
  import butterknife.ButterKnife;
  import butterknife.OnClick;
  import nucleus.factory.RequiresPresenter;
  
  @RequiresPresenter(PoliceStationsPresenter.class)
  public class PoliceStationsActivity extends AppCompatActivity implements IPoliceStationsView, OnMapReadyCallback {
      private final String TAG = getClass().getSimpleName();
      private final double LAT = -26.8167;
      private final double LNG = -65.2167;
  
      @BindView(R.id.myToolbar) Toolbar toolbar;
      @BindView(R.id.myPoliceStationButton) Button myPoliceStationButton;
      @BindView(R.id.listPoliceStationsButton) Button listPoliceStationsButton;
      @BindView(R.id.progressBar) ProgressBar progressBar;
  
      @BindString(R.string.section_police_stations) String title;
      @BindString(R.string.accept) String ok;
      @BindString(R.string.cancel) String cancel;
      @BindString(R.string.title_attention) String titleWarning;
      @BindString(R.string.text_permissions_location) String messagePermissionLocation;
      @BindString(R.string.text_gps) String messageGps;
      @BindString(R.string.not_permission_location) String messageNotPermissionLocation;
      @BindString(R.string.not_found_range) String messageNotFoundRange;
      @BindString(R.string.message_call_police_station) String messageCallPoliceStation;
  
      @BindDrawable(R.drawable.ic_arrow_back_white_24dp) Drawable arrowBack;
  
      private Context context = this;
      private PoliceStationsPresenter presenter;
      private PoliceStationsInteractor interactor;
  
      private String[] permissions = new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION};
      private GoogleMap googleMap;
      private KmlLayer jurisdictionKmlLayer;
      private ArrayList<Marker> markersPoliceStation = new ArrayList<>();
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.police_station_activity_map);
          ButterKnife.bind(this);
  
          toolbar.setTitle(title);
          toolbar.setNavigationIcon(arrowBack);
          toolbar.setNavigationOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  finish();
              }
          });
  
          if (googleMap == null) {
              MapFragment mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.policeStationsMap);
              if (mapFragment != null){
                  mapFragment.getMapAsync(this);
              }
          }
  
          interactor = new PoliceStationsInteractor(context);
          presenter = new PoliceStationsPresenter(context, interactor);
          presenter.addView(this);
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
              case android.R.id.home:
                  finish();
                  break;
          }
          return super.onOptionsItemSelected(item);
      }
  
      @Override
      public void onMapReady(GoogleMap googleMap) {
          googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(LAT, LNG), 11));
          googleMap.getUiSettings().setZoomControlsEnabled(true);
          this.googleMap = googleMap;
  
          if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED
                  && ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
              Log.i(TAG, "not permission access fine location");
          } else {
              googleMap.setMyLocationEnabled(true);
          }
          try {
              jurisdictionKmlLayer = new KmlLayer(googleMap, R.raw.police_stations_jurisdictions, context);
              jurisdictionKmlLayer.addLayerToMap();
          } catch (XmlPullParserException | IOException e) {
              e.printStackTrace();
          }
          try {
              this.googleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
                  @Override
                  public View getInfoWindow(Marker marker) {
                      View view = getLayoutInflater().inflate(R.layout.info_windows_police_station, null);
  
                      PoliceStation policeStation = presenter.getPoliceStationById(Integer.valueOf(marker.getTitle()));
  
                      TextView namePoliceStation = (TextView) view.findViewById(R.id.namePoliceStation);
                      TextView namePoliceBoss = (TextView) view.findViewById(R.id.namePoliceBoss);
                      SquareImageView profilePoliceBoss = (SquareImageView) view.findViewById(R.id.profilePoliceChief);
                      TextView phone = (TextView) view.findViewById(R.id.phonePoliceChief);
  
                      if (policeStation != null) {
                          namePoliceStation.setText(policeStation.getName());
                          namePoliceBoss.setText(policeStation.getPoliceChief());
                          Log.i(TAG, "android.resource://"+getPackageName()+"/raw/chief_"+policeStation.getName().replaceAll("[^0-9]+", ""));
                          profilePoliceBoss.setImageURI(Uri.parse("android.resource://"+getPackageName()+"/raw/chief_"+policeStation.getName().replaceAll("[^0-9]+", "")));
                          phone.setText(getString(R.string.phone) + policeStation.getPhone());
                      }
  
                      return view;
                  }
  
                  @Override
                  public View getInfoContents(Marker marker) {
                      return null;
                  }
              });
              presenter.showPoliceStation();
          } catch (JSONException | IOException e) {
              e.printStackTrace();
          }
      }
  
  
      @Override
      public KmlLayer getJurisdictionKmlLayer() {
          return jurisdictionKmlLayer;
      }
  
      @Override
      public ArrayList<Marker> showPoliceStations(ArrayList<MarkerOptions> markerOptionsArrayList) {
          ArrayList<Marker> markers = new ArrayList<>();
          for (MarkerOptions markerOptions : markerOptionsArrayList) {
              Marker marker = googleMap.addMarker(markerOptions);
              googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {
                  @Override
                  public void onInfoWindowClick(Marker marker) {
                      final PoliceStation policeStation = presenter.getPoliceStationById(Integer.valueOf(marker.getTitle()));
  
                      new AlertDialog.Builder(context)
                              .setTitle(titleWarning)
                              .setMessage(messageCallPoliceStation
                                      + " " + policeStation.getName())
                              .setCancelable(true)
                              .setPositiveButton(ok, new DialogInterface.OnClickListener() {
                                  @Override
                                  public void onClick(DialogInterface dialogInterface, int i) {
                                      if (PackageManager.PERMISSION_GRANTED !=  ActivityCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE)) {
  
                                          if (ActivityCompat.shouldShowRequestPermissionRationale((Activity) context, Manifest.permission.CALL_PHONE)) {
                                              ActivityCompat.requestPermissions((Activity) context, new String[]{Manifest.permission.CALL_PHONE}, 6);
                                          } else {
                                              ActivityCompat.requestPermissions((Activity) context, new String[]{Manifest.permission.CALL_PHONE}, 6);
                                          }
                                      } else {
                                          context.startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + policeStation.getPhone())));
                                      }
                                  }
                              })
                              .setNegativeButton(cancel, new DialogInterface.OnClickListener() {
                                  @Override
                                  public void onClick(DialogInterface dialogInterface, int i) { }
                              })
                              .show();
                  }
              });
              if (marker != null){
                  markers.add(marker);
              }
          }
          return markers;
      }
  
      @Override
      public ArrayList<Marker> getMarkers() {
          return markersPoliceStation;
      }
  
      @Override
      public void setMarkersPoliceStations(ArrayList<Marker> markers) {
          markersPoliceStation = markers;
      }
  
      @Override
      public void warningGpsMessage() {
          new AlertDialog.Builder(context)
                  .setTitle(titleWarning)
                  .setMessage(messageGps)
                  .setCancelable(false)
                  .setPositiveButton(ok, new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialogInterface, int i) {
                          startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));
                      }
                  })
                  .show();
      }
  
      @Override
      public void notFoundRangeMessage() {
          new AlertDialog.Builder(context)
                  .setTitle(titleWarning)
                  .setMessage(messageNotFoundRange)
                  .setCancelable(false)
                  .setPositiveButton(ok, new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialogInterface, int i) {
                      }
                  })
                  .show();
      }
  
      @Override
      public void notPermissionLocationMessage() {
          new AlertDialog.Builder(context)
                  .setTitle(titleWarning)
                  .setMessage(messageNotPermissionLocation)
                  .setCancelable(false)
                  .setPositiveButton(ok, new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialogInterface, int i) {
                      }
                  })
                  .show();
      }
  
      @Override
      public void permissionLocationMessage() {
          new AlertDialog.Builder(context)
                  .setTitle(titleWarning)
                  .setMessage(messagePermissionLocation)
                  .setCancelable(false)
  