制作 Android 应用程序 (Java)“等等”直到事情完成
我有这个应用程序,最初让您拍照,向您显示进度条,然后将其上传到网站。
我想添加的是,在进度条显示之前,意图启动一个活动,该活动加载带有下拉菜单的布局,允许您选择图片的描述符。接下来,一旦您在这个新布局上点击“确定”按钮,程序应该返回到它停止的地方并显示进度条。
有谁对如何实现这一目标有任何想法?
看来我真正想要的是某种方式告诉程序暂停一段时间以调用意图,当用户点击“确定”时,代码可能会恢复。
I have 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用 OnActivityResult().. 有关以下链接的更多信息 http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)
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)