I am new to android development. I want to develop a dialog
with a progressbar
in my application. When i click the search button the dialog
should appear with the progressbar
, showing that the progress is going on before switching to another activity
. Please suggest me with sample code.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Use a
ProgressDialog
. You should do the work on a newthread
, though, and use ahandler
to call back to theactivity
when finished. Here's how I do it: