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. 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\",
\"MemberFirstName\":\"Yang\",\"MemberFamilyName\":\"Liu\",
\"ThumbnailFilename\":\"88831472_Image_1.jpg\"}"

This doesn't work (BodyStyle = Wrapped):

{"GetMemberResult":"{\"MemberID\":\"88831472\",\"MemberUserName\":
\"Yang Yi\",\"MemberFirstName\":\"Yang\",\"MemberFamilyName\":\"Liu\",
\"ThumbnailFilename\":\"88831472_Image_1.jpg\"}"}

I created the string manually which works:

"{\"GetMemberResult\":{\"MemberFamilyName\":\"Liu\",\"MemberFirstName
\":\"Yang\",\"MemberID\":\"88831472\",\"MemberUserName\":\"Yang Yi\",
\"ThumbnailFilename\":\"88831472_Image_1.jpg\"}}"

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:

org.json.JSONObject
and
com.google.gson.*

Both have the same issue with the JSON data.

Thanks!

-- 

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