hu.naturlecso.naturshutd.dialog.ProgressDialogFragment.java Source code

Java tutorial

Introduction

Here is the source code for hu.naturlecso.naturshutd.dialog.ProgressDialogFragment.java

Source

/*
 * Copyright (C) 2013 Jozsef Szilvasi <jozsef.szilvasi@gmail.com>
 * 
 * This file is part of NaturShutd.
 *
 * NaturShutd 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.
 *
 * NaturShutd 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 NaturShutd.  If not, see <http://www.gnu.org/licenses/>. 
 */

package hu.naturlecso.naturshutd.dialog;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

import hu.naturlecso.naturshutd.R;

public class ProgressDialogFragment extends DialogFragment {

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        ProgressDialog dialog = new ProgressDialog(getActivity());
        dialog.setIndeterminate(true);
        dialog.setMessage(getString(R.string.dialog_execute_progress));
        return dialog;
    }
}