Open jiangzhixiao opened 7 years ago
@kasim1011 hi kasim,can you help me ?
@jiangzhixiao
For any kind of server call, please use AsyncTask
or AsyncTaskLoader
.
In my case I've called has_group
method of res.users
using AsyncTask
.
Let's ask to @dpr-odoo for what to use for best practices.
i resolve this issue i made big mistake. the android code should be write in AsyncTask method .
@kasim1011 thanks for your reply kasim.i see your post just now .
@dpr-odoo any other better solutions?
Hi all when i call an server method use the
callMethod("test_method")
, the test_method was called successs. but the anroid UI was blocked. for debug ,i have to uninstall the app and install the app everytime,it made me burst! i got this log from android debug consoleD/Volley: [90139] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http://192.168.0.101:8066/web/dataset/call_kw 0x85adf655 NORMAL 7> [lifetime=13084], [size=30], [rc=200], [retryCount=0]
can anyone help me out? best regardsjust now , i try these code
OdooResult record = resPartner.getServerDataHelper().read(null, 1);
it also can't get response from odoo server.