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. Is there any Android Handset which CDMA based?


I would like to know whether Android handsets support CDMA network
also. Are there any handset which currently supports CDMA or every
handset has support for that. Actually I want to retrieve the location
information such as Cellid, LAC, MCC, MNC. But if the network is of
CDMA type then will there be any difference in the API. Since API for
fetching cellid is GsmCellLocation. This class will give the cellid
and lac of the current network.

If in some cases the network is of CDMA type then how would location
information be fetched in that.. Can we use TelephonyManager class
methods for any kind of device? In this class there is no method which
gives the LAC of the current network.

I hope to get the reply soon.


2. Re :SMS Database with new Hero ROM

Re: [android-developers] Re: SMS Database with new Hero ROMFrom:
Markus Etter <>Date:
Thu, 24 Sep 2009 20:33:58 +0200To:

I've developed an sms application. With the new Hero rom, the app
doesen't work anymore. It seems as if the database has changed.

I use the following approach to get the data I need:

private String[] mProjection = new String[]
private Uri mUri = Uri.parse("content://mms-sms/conversations");

Cursor smsCursor= context.getContentResolver().query
(mUri,mProjection,null, null,"DATE DESC");

This code now suddenly crashes on HTC Hero phones, complaining about
missing tables (thread_id for instance).

How can I fix this? Where do I get additional information about "new"
db design? And more generally: How in gods name am I supposed to
handle different behaviour on different phones when I develop my apps
on the standard SDK???

Do you have any evidence that the SMS database is part of Android's public

If it is not -- and it does not seem to appear in android.provider, where
the officially-supported providers reside -- then you will run into
problems like this. Any device manufacturer is welcome to replace the
built-in applications, including SMS.

Solving this may not be possible, unless you can do queries with wildcards
on the content provider (never tried that) and can therefore inspect at
least the column names that way. Even then, that implies that you can
learn the schemas for all devices that change the original schema and can
adapt your application to each.

This is not significantly different than building an application that
assumes the existence of Outlook that then crashes when the user only has
Outlook Express, Mozilla Thunderbird, or some other email client.

If there isn't an issue already, you might consider putting an issue in, asking for a common SMS store to become part of the
official API (again, assuming it is not official already).

Hello Mark

Thank you for your quick and enlightening reply. It wasn't clear to me that
something I can access using the standard SDK might actually not be part of
the public API. If it actually is not it would completely prevent the
development of alot of SMS applications.
There actually IS an open issue for this located here:

However there still are SMS apps that do not seem to be influenced by this
problem; ergo I assume there's some dirty way around?

Cheers, Markus


3. SMS Database with new Hero ROM

4. name of the event which gets trigger when i push/pull the file in FS

5. Picasa intent return code

6. RDP on Android

7. An idea for the Goggle Team to ease migration from device to device - and other stuff :)