开发者

How to pause the app for a second, and display a popup with animation

开发者 https://www.devze.com 2023-01-26 03:28 出处:网络
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百科

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;

0

精彩评论

暂无评论...
验证码 换一张
取 消