You are on page 1of 2

http://www.ted.

com/talks/lang/eng/pranav_mistry_the_thrilling_potential_of_sixth
sense_technology.html
--------------------------------------------------------------------------------
---------------------------------
http://testfunda.com/ExamPrep/Downloads/Ebooks.aspx
-----------------------------------------------
http://malsandroid.blogspot.com/2010/04/loading-please-wait.html
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------------------------------------
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final ProgressDialog dialog = new ProgressDialog(MyActivity.this);
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
dialog.setMessage("Downloading 200gb...");
dialog.setCancelable(true);
dialog.setMax(200);
dialog.setProgress(0);
dialog.show();
Thread t = new Thread(new Runnable(){
public void run() {
while(dialog.getProgress() < dialog.getMax())
{
dialog.incrementProgressBy(1);
try{Thread.sleep(50);}catch(Exception e){/* no-op */}
}
dialog.dismiss();
}
});
t.start();
}
--------------------------------------------------------------------------------
----------------------------------------------------------------------
RadioButton sendNed = ( RadioButton) findViewById(R.id. RadioButton01);
sendNed.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
ProgressDialog dialog= (context,context);
dialog.setCancelable(true);
dialog.setMessage("Loading...");
dialog.show(); ; }
});}{

if (view == findViewById(R.id.RadioButton01)) {
// prepare the dialog box
ProgressDialog dialog = new ProgressDialog(this);
// make the progress bar cancelable
dialog.setCancelable(true);

// set a message text


dialog.setMessage("Loading...");

// show it
dialog.show();

You might also like