ducdan / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Caling ajax() twice throws exception #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the application with attached xml layout and java file for the activity.
2. Press the button. It executes once. Wait till it finishes.
3. Press the button for the second time. It throws an exception and force 
closes.

What is the expected output? What do you see instead?
Expected output is for the AQuery.ajaxcall to run again with no problem. 
Instead it throws.

What version of the product are you using? On what operating system?
I use android-query.0.20.6. Android 2.3.5. 

Please provide any additional information below.
I have created a simple demo to replicate the problem. Please see the attached 
files.

Original issue reported on code.google.com by mr.4nd32...@gmail.com on 30 Mar 2012 at 4:52

Attachments:

GoogleCodeExporter commented 8 years ago
It throws android.view.ViewRoot$CalledFromWrongThreadException. Sorry to let 
this out.

Original comment by mr.4nd32...@gmail.com on 30 Mar 2012 at 4:54

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 31 Mar 2012 at 4:51

GoogleCodeExporter commented 8 years ago
async can now be called after the ajax is completed.

Original comment by tinyeeliu@gmail.com on 27 Apr 2012 at 5:01