User Cancel - ProgressDialog

by Matthew Patience » Tue, 20 Apr 2010 21:00:43 GMT


Sponsored Links
 I started an indeterminate progress dialog in my onCreate method and
then used ASync to download some info and display it to the user.
After that I dismissed the progressdialog. I don't if anyone else has
experienced this but sometimes the progress dialog is stuck in a loop
and it wont download any info. I can tell because the data arrows wont
move. The only way to cancel this is to click the Home or Search key.

I have never been able to figure out how to debug my applications but
I was rather wondering if this is a common problem or if there is a
simple fix.

Thanks

--



User Cancel - ProgressDialog

by polyclefsoftware » Tue, 20 Apr 2010 21:10:53 GMT


 I believe if you use the following method, the back button should
dismiss the progress dialog, without closing the app:

progressDialog.setCancelable(true);

On Apr 20, 8:00am, Matthew Patience <matthewj.patie...@gmail.com>


>


Sponsored Links


User Cancel - ProgressDialog

by Matthew Patience » Thu, 22 Apr 2010 01:00:50 GMT


 Works, thank you. The class documentation isn't all there for some
reason. Found a whole bunch of stuff in the code auto-completion in
Eclipse though.




> >



Other Threads

1. Activity receiving messages after onDestroy

I have an Activity with an inner Handler. The problem is that after
the activity is destroyed, the Handler is receiving messages for the
destroyed activity. This breaks things because the activity is in an
inconsistent state.

I'm thinking this might be a bug in Android - it should probably
delete all the messages in the queue when the activity is destroyed.
There doesn't appear to be any way I can manually delete all messages
in the queue (except by calling removeMessage(int what) with every
possible variation of what, which seems a bit ridiculous). The only
other solution I can think of is to create my own is_destroyed
instance variable and check it in handleMessage(), but again that
seems like a ridiculous hack.

Has anyone come across this problem before?

-- 

2. ask about x10

hi all, salam kenal yak, nubie di id android nih, walopun dah agak
lama srg buka group ni. g d pernah pake miley and skrg pake x10. mao
tanya donk para suhu, x10 dah kluar blom yah custom rom nya? yg ad
multitouch? agk gerah gk bs multi touch hhehe, mohon inponya ya para
suhu

-- 
"Indonesian Android Community [id-android]" 

3. Not calling OnStop when an incoming call is received

4. Prevent scaling of :button on checkbox?

5. Not calling OnStop when an incoming call is received

6. Activity receiving messages after onDestroy

7. Different screen sizes x different layouts