ProgressDialog

Top  Previous  Next

Tela

 

Java

package com.visual;

 

import android.app.Activity;

import android.app.ProgressDialog;

import android.os.Bundle;

 

public class ProgressDialogExempo extends Activity {

 

 private ProgressDialog dialog;

 

 @Override

 protected void onCreate(Bundle savedInstanceState) {

         super.onCreate(savedInstanceState);

 

         dialog = ProgressDialog.show(this, "Titulo", "Uma mensagem", false, true);

 

         // faz algo - 2º plano, thread, etc

 

         dialog.dismiss();

 }

}