Re: [android-developers] Progress Dialog on application load

2010-10-11 Thread TreKing
On Mon, Oct 11, 2010 at 2:02 AM, Rocky  wrote:

> I want PDialog box will come before the change_password screen appears


Technically it does, but you launch your new activity immediately afterward,
so you don't see anything.
I recommend you use an AsyncTask to manage your sequence. You would show
your dialog at the beginning, do your background work, then start your new
activity at the end.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Progress Dialog on application load

2010-10-11 Thread Rocky
this is my code

onCreate()
{

myProgressDialog = ProgressDialog.show(iAnywhere.this,"Please
wait..","Checking setting", true);

 new Thread() {
 public void run() {
 try{
 // Do some Fake-Work
 sleep(5000);
 } catch (Exception e) { }
 // Dismiss the Dialog
 myProgressDialog.dismiss();
 }
 }.start();


Intent myIntent = new Intent(iAnywhere.this,
change_password.class);
startActivityForResult(myIntent,
Intent.FLAG_ACTIVITY_NO_ANIMATION);
 }

I want PDialog box will come before the change_password screen appears

On Mon, Oct 11, 2010 at 12:19 PM, TreKing  wrote:

> On Mon, Oct 11, 2010 at 1:38 AM, RKJ (Android developer) <
> rkjhaw1...@gmail.com> wrote:
>
>> I want a progress dialog before launching the apps, once click on
>> application, first ProgressDialog will come for 5 sec then actual
>> application.
>>
>
> OK. So what's the problem?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks & Regards

Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030274295
(R) +919886336619

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Progress Dialog on application load

2010-10-10 Thread TreKing
On Mon, Oct 11, 2010 at 1:38 AM, RKJ (Android developer) <
rkjhaw1...@gmail.com> wrote:

> I want a progress dialog before launching the apps, once click on
> application, first ProgressDialog will come for 5 sec then actual
> application.
>

OK. So what's the problem?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Progress Dialog on application load

2010-10-10 Thread RKJ (Android developer)
Hey,
I want a progress dialog before launching the apps, once click on
application, first ProgressDialog will come for 5 sec then actual
application.

--RKJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en