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. How does FW upgrade work without erasing user data?

Hi,

I'm trying to understand what happens under the covers when *end-
users* upgrade their device firmware from Android ver. X to X+1
(regardless of whether they initiate the action, or their carrier
sends the update OTA).

I'm working on an Android based device, and I need to understand how
this is supposed to work. A new build of Android contains system.img
and userdata.img (among other files). The system.img file is read-
only, so replacing the user's existing copy shouldn't result in any
data loss. Not so with userdata.img; overwriting this file with a
newer version would destroy all of an end-users application data
(wouldn't it?). Could it be that userdata.img never contains any data
that needs to be updated during a FW upgrade, and so isn't
overwritten? Or is there some process that merges changes into /data?

Surely there is a procedure envisioned for upgrading FW for Android-
based devices without nuking users' address books, and other private
data. Unfortunately, Googling for this information yields only pages
containing specific hacker-level instructions (e.g. adb commands); I
can't find any mention of this topic online, or in the documentation.



Does anyone know how this is supposed to work, or where this is
documented?

Thanks very much in advance.

-Mr INTJ

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Geocoder.getFromLocationName() ignores bounding box

How can I convert a street address into a latitude + longitude?

I've tried to use Geocoder.getFromLocationName() with a bounding box,
but all results I get are outside of the box.  Is there a way to limit
the hits to a certain area on earth?

   Regards //Johan

--~--~---------~--~----~------------~-------~--~----~

3. One in a thousand (or is that million?) bug

4. Customizing Android UI behaviour

5. is there a way to put entire folder from "assets" to sdcard? not just individual files.

6. Android Market Rankings

7. Replace styles and themes