I have 2 questions actually, while we're on the subject :)

1.  I have some code in my program that processes some stuff, and
takes a few seconds. So I thought logically I can place my dialog show
at the beginning before processing begins, and cancel it at the end.
What ACTUALLY seems to be happening is my dialog shows after the
processing is done... Some demo code to show what I mean with a simple
sleep:

ProgressDialog p = ProgressDialog.show(v.getContext(), "updating
things" "things are updating");
try{
   Thread.sleep(4000);
}catch(Exception e){}
p.cancel();

You would assume it'd show the dialog, process/sleep for 4 seconds,
then cancel it. but it doesnt.


2. How can I remove the title bar entirely from the dialog? I've seen
some apps that do this, and am wondering if there's a simple way to do
this programatically, since I dont see that option in the docs.

thanks :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to