Java tutorial
//package com.java2s; import android.app.ProgressDialog; import android.content.Context; public class Main { public static ProgressDialog startProgressDialog(Context context) { ProgressDialog dialog = ProgressDialog.show(context, "Loading", "Please wait ...", true); return dialog; } }