2011/12/20 Kostya Vasilyev <[email protected]>

> 1) Build your own dialog with a cancel button;
>
> 2) Use Dialog.setOnCancelListener which gets called if the user
> presses the Back key; here the dialog is dismissed automatically;
>
> 3) Set a key listener in the dialog and check for when the back key is
> pressed
>

4) Instead of a Dialog, use a
ProgressBar<http://developer.android.com/reference/android/widget/ProgressBar.html>
embedded in
the same layout as the button.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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