Here is some sample code you can try:
http://thedevelopersinfo.wordpress.com/2009/10/16/showing-progressdialog-in-android-activity/
Actually, you need to start the progress dialog from the main thread
and start a new thread which solves your purpose and gives the call as
to when the progress
My idea would be to use asynctask...
In tthis specific case you can do some lengthy task (for example in
another Thread) and in the menatime show a progress bar...
On 13 apr, 13:20, Sasikumar.S sasikumar.it1...@gmail.com wrote:
Hi ,
- In my application i'm loading 40 images in background
Ya that's right.
My problem is i can't able to set progress bar in Status bar. Progress bar
working is Second thing.
On Tue, Apr 13, 2010 at 5:00 PM, MobDev developm...@mobilaria.com wrote:
My idea would be to use asynctask...
In tthis specific case you can do some lengthy task (for example
Sasikumar.S wrote:
Ya that's right.
My problem is i can't able to set progress bar in Status bar. Progress
bar working is Second thing.
You cannot indicate progress in the status bar. Please use a
ProgressDialog, ProgressBar, progress indicator in the title bar, or a
custom animation.
--
ok... Thank you i will try it.
On Tue, Apr 13, 2010 at 5:22 PM, Mark Murphy mmur...@commonsware.comwrote:
Sasikumar.S wrote:
Ya that's right.
My problem is i can't able to set progress bar in Status bar. Progress
bar working is Second thing.
You cannot indicate progress in the status
On Sat, Apr 3, 2010 at 9:39 PM, Kumar Bibek coomar@gmail.com wrote:
So, before orientation change and after orientation change, you need to
save the state of your dialog and then recreate it.
If you use showDialog(), which it looks like the OP is using, you don't have
to save the dialog's
Thanks!
Please check the attached file from
android-2.1\samples\ApiDemos\src\com\example\android\apis\app folder
/* Display a custom progress bar */
Button progressButton = (Button) findViewById(R.id.progress_button);
progressButton.setOnClickListener(new OnClickListener()
Since the whole Activity is re-started, if you don't have a code which
initialized the ProgressDialog again, after orientation change, you
will not get the desired results. So, before orientation change and
after orientation change, you need to save the state of your dialog
and then recreate it.
Thanks a lot
On Jun 30, 6:53 pm, Dianne Hackborn hack...@android.com wrote:
It's this:
http://developer.android.com/reference/android/os/AsyncTask.html
If you just search this group you will find lots of discussion of it.
On Tue, Jun 30, 2009 at 3:46 PM, Georgy georgearna...@gmail.com
Yeah but it wouldn't wait for the application to load (either before
or after). I want something to get triggered WHILE the application is
loading. A simple loading dialog... (progress dialog)
On Jun 23, 1:16 am, Brian Cloutier brian.studios.andr...@gmail.com
wrote:
It's been a while since I
You need to do your work in a separate thread, so the main thread is free to
run and display/update the dialog.
On Tue, Jun 30, 2009 at 5:21 AM, Georgy georgearna...@gmail.com wrote:
Yeah but it wouldn't wait for the application to load (either before
or after). I want something to get
I am trying, I always get errors, here's my code:
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
final Dbadapter db = new Dbadapter(this); // This creates an instance
of the database in this class
Use AsyncTask. There has been lots of discussion of it on this group, and I
think it is pretty well documented in the SDK.
On Tue, Jun 30, 2009 at 1:46 PM, Georgy georgearna...@gmail.com wrote:
I am trying, I always get errors, here's my code:
@Override
public void
I will try looking more into it. Should I have the AsyncTask source
code implemented in my app? it doesn't seem to recognize it.
Is there a tutorial?
On Jun 30, 4:50 pm, Dianne Hackborn hack...@android.com wrote:
Use AsyncTask. There has been lots of discussion of it on this group, and I
It's this:
http://developer.android.com/reference/android/os/AsyncTask.html
If you just search this group you will find lots of discussion of it.
On Tue, Jun 30, 2009 at 3:46 PM, Georgy georgearna...@gmail.com wrote:
I will try looking more into it. Should I have the AsyncTask source
code
It's been a while since I last made an Android Application, so take this
with a grain of salt, but can't you just fire an intent to start the dialog
from onStart()?
On Mon, Jun 22, 2009 at 9:06 PM, Georgy georgearna...@gmail.com wrote:
Hello,
I am trying to initiate a progress bar when my
At the start of your program, do
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
Then when you want to display a rotating little circle in the title
bar, do
setProgressBarIndeterminateVisibility(true);
When updating or whatever is done, do
Hi Christine,
Thanks for your help. That seems to only work in the initial loading
screen. How do I go about doing the same when the user scroll to an
image that I am still loading and then show the loading progress bar.
Is there an example somewhere that i can follow?
thanks
On Nov 11, 4:45
The way I do this is how the market app does it - show a placeholder
image that's in your resources directory, then have a thread load the
real image and update when it's fetched that.
Not too hard to do. You can also do this when the particular list row
is in view, see the samples, in the API
19 matches
Mail list logo