Progress bar in notification bar

by yakura y » Fri, 23 Apr 2010 08:04:57 GMT


Sponsored Links
 Hello everybody,

I would like to put a progress bar in the notification bar. The idea is
showing the progress bar while the program uploads a file to a server.
Everything else is ok, but I can not figure out how to refresh the progress
bar inside the notification. Does anybody knows any pattern to play with?

Thanks in advance.

--



Other Threads

1. Help How to lazy load images

Hi

I am using the following code to display an image from the internet

 ImageView i = new ImageView(mContext);
 i.setImageDrawable(getDrawable("http://www.google.com/images/
nav_logo3.png"));
...

        public Drawable getDrawable(String imgUrl) {
                try {
                        URL url = new URL(imgUrl);
                        InputStream is = (InputStream) url.getContent();
                        Drawable d = Drawable.createFromStream(is, "src");
                        return d;
                } catch (MalformedURLException e) {
                        e.printStackTrace();
                        return null;
                } catch (IOException e) {
                        e.printStackTrace();
                        return null;
                }
        }

but I would like to be able to load the image asynchronously so that
if I want to display a list of 10 images then the text would start to
render and then images would load one after the other (like a
browser...) . The problem with every code that I have seen so far is
that it is all synchronous that is not really good for user
experience. I am sure I am missing somthing and would really
appreciate your help

thanks

jb

--~--~---------~--~----~------------~-------~--~----~

2. How to call activity using multiple key press

Hi all,
I wonder if there is anyway to do the following:

call my activity when a certain sequence of keys is pressed,
disregarding the application ongoing in foreground

this shall be something similar to a shortcut but I wasn't able to
find a way to do that

for being more precise I was thinking to call my activity when central
keys is pressed (let's say) 3 consecutive times quickly

any chance to do that?

thanks in advance and... happy new year!
--~--~---------~--~----~------------~-------~--~----~

3. Push Notification Techniques: Discuss

4. Uninstalling application breaks gmail preview on G1

5. track boor isn't working on button with has only background image

6. How to use observer pattern in Andorid/ or other method to improve UI response

7. New