Back to project page frc-notebook.
The source code is released under:
GNU General Public License
If you think the Android project frc-notebook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.plnyyanks.frcnotebook.dialogs; /*from w w w. j a v a 2 s. co m*/ import android.app.Dialog; import android.app.DialogFragment; import android.os.Bundle; /** * File created by phil on 3/15/14. * Copyright 2014, Phil Lopreiato * This file is part of FRC Notebook. * FRC Notebook 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 (at your option) any later version. * FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/. */ public class ProgressDialog extends DialogFragment { private static String msg; public ProgressDialog(String message){ this(); msg = message; } public ProgressDialog(){ super(); } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { android.app.ProgressDialog dialog = android.app.ProgressDialog.show(getActivity(), "Please wait ...", msg, true); dialog.setCancelable(false); return dialog; } }