public void openFAQ(View view) {
   if (bloqueo.getState("Preguntas")) {
     Funciones.makeResultAlert(mContext, bloqueo.getMsg("Preguntas"), false).show();
   } else {
     startActivity(new Intent(this, FAQActivity.class));
   }
 }
  public void show_plantas_externas(View view) {
    if (bloqueo.getState("PlantasExternas")) {
      Funciones.makeResultAlert(mContext, bloqueo.getMsg("PantasExternas"), false).show();
    } else {
      ConnectivityManager conMan =
          (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

      State senal3g = conMan.getNetworkInfo(0).getState();
      State wifi = conMan.getNetworkInfo(1).getState();

      if (senal3g == State.CONNECTED || wifi == State.CONNECTED) {
        Intent i = new Intent(this, Plantas_Externas.class);
        startActivityForResult(i, 0);

      } else {
        Funciones.makeResultAlert(
                mContext, "No existe conexión a internet para utilizar el Programa", false)
            .show();
      }
    }
  }
  public void buscar_cliente(View view) {
    if (bloqueo.getState("busquedaInicial")) {
      Funciones.makeResultAlert(mContext, bloqueo.getMsg("busquedaInicial"), false).show();
    } else {
      ConnectivityManager conMan =
          (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

      State senal3g = conMan.getNetworkInfo(0).getState();
      State wifi = conMan.getNetworkInfo(1).getState();
      if (senal3g == State.CONNECTED || wifi == State.CONNECTED) {
        if (phone.getText().length() == 0 || phone.getText() == null) {
          Funciones.makeResultAlert(mContext, "Ingrese un número de teléfono", false).show();
          return;
        }

        Consulta_Resources c = new Consulta_Resources();
        c.execute();
      } else {
        Funciones.makeResultAlert(
                mContext, "No existe conexión a internet para utilizar el Programa", false)
            .show();
      }
    }
  }