1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
public static ProgressDialog createProgressDialog(Context context, String title, String message)
{
ProgressDialog pd = new ProgressDialog(context);
pd.setTitle(title);
pd.setMessage(message);
pd.setIndeterminate(true);
pd.setCancelable(true);
return pd;
}
protected Dialog onCreateDialog(int id)
{
Log.i(TAG, "DIALOG_MESSAGE" + id);
switch (id)
{
case DIALOG_WAITING_MESSAGE:
return Tools.createProgressDialog(this, "Recuperation du message", "Veuillez patienter...");
default:
return super.onCreateDialog(id);
}
} |