In my app, I snap a picture, display it, and detect for faces. Is there a way, for when the user hits the 'Detect Faces' button, for me to have the app delay for a few seconds, and have开发者_JAVA百科 a popup box with the dialog: 'Detecting...' show up? Also, can I get a tiny animation below it (like an hourglass, or a spinning circle)?
Thanks!
Nevermind, found it in the API easily! Was looking in the wrong place.
ProgressDialog dialog = ProgressDialog.show(this, "", "Dectecing...", true);
dialog.show;
精彩评论