create Loading Dialog using ProgressDialog - Android User Interface

Android examples for User Interface:ProgressDialog

Description

create Loading Dialog using ProgressDialog

Demo Code


//package com.java2s;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;

public class Main {
    public static Dialog createLoadingDialog(Context context) {

        ProgressDialog dialog = new ProgressDialog(context);
        dialog.setMessage("Loading");

        return dialog;

    }/* www  . ja v a 2s. c  o m*/
}

Related Tutorials