/** * ORcycle, Copyright 2014, 2015, PSU Transportation, Technology, and People Lab. * * @author Robin Murray <robin5@pdx.edu> (code) * @author Miguel Figliozzi <figliozzi@pdx.edu> and ORcycle team (general app * design and features, report questionnaires and new ORcycle features) * * For more information on the project, go to * http://www.pdx.edu/transportation-lab/orcycle and http://www.pdx.edu/transportation-lab/app-development * * Updated/modified for Oregon pilot study and app deployment. * * ORcycle is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or any later version. * ORcycle is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * You should have received a copy of the GNU General Public License along with * ORcycle. If not, see <http://www.gnu.org/licenses/>. * */ package edu.pdx.cecs.orcycle; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; /** * * */ public class AlertUserMandatoryAnswersDialog { private final AlertDialog alertDialog; public AlertUserMandatoryAnswersDialog(Context context) { final AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setMessage(context.getResources().getString(R.string.aumad_answer_required_questions)) .setTitle(R.string.aumad_save_report_title) .setCancelable(true) .setPositiveButton(context.getResources().getString(R.string.aumad_ok), new DialogInterface.OnClickListener() { public void onClick(final DialogInterface dialog, final int id) { dialog.cancel(); } }); alertDialog = builder.create(); } public void show() { alertDialog.show(); } }