在通知栏进度条,当上传图片? [英] Progress bar in notification bar when uploading image?
问题描述
我想我的应用程序将图像上传到Web服务器。这部分工作。
I'd like my app to upload an image to a web server. That part works.
我不知道是否有可能通过输入在通知栏中的条目以某种方式显示上传进度。我看到了Facebook的应用程序来实现的。
I'm wondering if it's possible to somehow show the progress of the upload by entering an entry in the "notification bar". I see the Facebook app does this.
当你拍张照片,然后选择要上传的应用程序可以让你继续,并以某种方式把图片上传通知,在通知栏的进度条。我认为这是pretty的光滑。我想他们产生一个新的服务或东西来处理上传和更新的通知栏的进度条几乎每隔一段时间。
When you take a picture and choose to upload, the app lets you continue on, and somehow puts the picture upload notifications in a progress bar in the notification bar. I think that's pretty slick. I guess they spawn a new service or something to handle the upload and update that progress bar in the notification bar every so often.
感谢您的任何想法
推荐答案
您可以设计的,而不是报头和子头的只是默认的通知视图自定义通知。
You can design a custom notification, instead of just the default notification view of header and sub-header.
你想要的是在这里: <一href="http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView">http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView
这篇关于在通知栏进度条,当上传图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!