@@ -0,0 +1,736 @@
+package com.jose.feelagaininecuador.alert_dialogs;%0A%0Aimport android.app.AlertDialog;%0Aimport android.app.Dialog;%0Aimport android.app.DialogFragment;%0Aimport android.content.Context;%0Aimport android.os.Bundle;%0A%0A/**%0A * Created by Jose on 11/25/2015.%0A */%0Apublic class AlertDialogFragment extends DialogFragment %7B%0A%0A    @Override%0A    public Dialog onCreateDialog(Bundle savedInstanceState) %7B%0A        Context context = getActivity();%0A        AlertDialog.Builder builder = new AlertDialog.Builder(context)%0A                .setTitle(%22Lo siento!%22)%0A                .setMessage(%22Hubo un error, por favor intentar de nuevo.%22)%0A                .setPositiveButton(%22OK%22, null);%0A%0A        AlertDialog dialog = builder.create();%0A        return dialog;%0A    %7D%0A%7D%0A

Add alert dialog to handle errors