[android-developers] Re: Progress Dialog box

2011-09-29 Thread B.Arunkumar
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

[android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread MobDev
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

Re: [android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread Sasikumar.S
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

Re: [android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread Mark Murphy
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. --

Re: [android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread Sasikumar.S
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

Re: [android-developers] Re: Progress dialog question/problem (API Demos example)

2010-04-04 Thread ~ TreKing
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

Re: [android-developers] Re: Progress dialog question/problem (API Demos example)

2010-04-04 Thread Evgeny V
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()

[android-developers] Re: Progress dialog question/problem (API Demos example)

2010-04-03 Thread Kumar Bibek
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.

[android-developers] Re: Progress Dialog When Application Starts

2009-07-01 Thread Georgy
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-30 Thread Georgy
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-30 Thread Dianne Hackborn
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-30 Thread Georgy
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-30 Thread Dianne Hackborn
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-30 Thread Georgy
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-30 Thread Dianne Hackborn
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

[android-developers] Re: Progress Dialog When Application Starts

2009-06-23 Thread Brian Cloutier
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

[android-developers] Re: progress dialog

2008-11-11 Thread Christine
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

[android-developers] Re: progress dialog

2008-11-11 Thread chouman82
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 

[android-developers] Re: progress dialog

2008-11-11 Thread Michael
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