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.



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:


On Apr 20, 8:00am, Matthew Patience <>


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. Relation between PhoneWindowManager and WindowManager

Hi all,

I have been working on customizing android WindowManager.  I did not
understand the relation between PhoneWindowManager and
WindowManager..   and  Why android has two WindowManagers..? which one
is actually being used..?   And PhoneWindowManager is implementing
WindowManagerPolicy.  Could someone tell me what is the policy and why
it is needed?

Please help me.. so that I can move forward in my work.

Thank you.


2. JSON deserialization - MVC Web Service

I have a test web MVC web service that is returning JSON data.   I am
not able to deserialze the data returned:

This doesn't work (BodyStyle = Bare):

"{\"MemberID\":\"88831472\",\"MemberUserName\":\"Yang Yi\",

This doesn't work (BodyStyle = Wrapped):

\"Yang Yi\",\"MemberFirstName\":\"Yang\",\"MemberFamilyName\":\"Liu\",

I created the string manually which works:

\":\"Yang\",\"MemberID\":\"88831472\",\"MemberUserName\":\"Yang Yi\",

According to what I have learned so far I expected all three to be
valid JSON data.  Can anyone tell me why I can't deserialize the first
two examples?  I have tried:


Both have the same issue with the JSON data.



3. Remotely trigger notifications

4. Get MYSQL data

5. how to shutdown android using java code

6. about new features in Email of 3.1

7. Binding to Service that was started by BroadcastReceiver