Java tutorial
//package com.java2s; //License from project: Open Source License import android.app.ProgressDialog; import android.content.Context; public class Main { public static ProgressDialog createProgressSpinner(Context context, String title, String message) { ProgressDialog dialog = null; if (dialog == null) { dialog = ProgressDialog.show(context, title, message); } else { dialog.setTitle(title); dialog.setMessage(message); } dialog.show(); return dialog; } }