Tag: loopj

使用android-async-http(loopj)发布JSON / XML

我使用的是android-async-http ,真的很喜欢它。 我遇到POST数据的问题。 我必须以以下格式将数据发布到API: – <request> <notes>Test api support</notes> <hours>3</hours> <project_id type="integer">3</project_id> <task_id type="integer">14</task_id> <spent_at type="date">Tue, 17 Oct 2006</spent_at> </request> 根据文档,我尝试使用RequestParams ,但它是失败的。 这是否有其他的方式来做到这一点? 我也可以发布相当于JSON。 有任何想法吗?