开发者

Making an Android App (Java) 'Wait' Until Something Finishes

开发者 https://www.devze.com 2023-04-07 08:56 出处:网络
I h开发者_StackOverflow中文版ave this app that originally has you take a picture, shows you a progress bar, and uploads it to a website.

I h开发者_StackOverflow中文版ave this app that originally has you take a picture, shows you a progress bar, and uploads it to a website.

What I want to add is something so that before the progress bar shows, an Intent starts an activity that loads a layout with a dropdown menu that allows you to choose a descriptor for the picture. Following this, once you hit the 'OK' button on this new layout, the program should return back to where it had left off and display the progress bar.

Does anyone have any ideas on how to achieve this?

It seems that all I really want is some way to tell the program to stall for a while to call an intent, and when the user hits 'OK', the code may resume.


You should be using OnActivityResult().. More information on the link below http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)

0

精彩评论

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

关注公众号