小编iOS*_*Dev的帖子

Loopj Post请求身体

亲爱的,我正在使用Loopj并且非常喜欢它.它让我的生活更轻松.现在我想在帖子请求的正文中发布json.请检查它我做错了我的代码如下.

params.put("SaleOrderItems", mJsonArrayOfObject.toString());
    params.put("CustomerReferenceNumber", "asdf");
    // /*mSaleOrder.getmCustomerReferenceNo()*/);
    params.put("RecordType", "HOS");
    params.put("DeliveryDate", "2012-12-28T12:04:27.3553985+01:00"); // mSaleOrder.getmDeliveryDate());
    params.put("SellToCustomerNumber", "user");
Run Code Online (Sandbox Code Playgroud)

然后我这样打电话.

mAsyncHttpClient.post(WEBCONSTANTS.ORDER_SERVICE_SAVE_ORDER, mParams,
            new AsyncHttpResponseHandler(){};
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误

{"Message":"No HTTP resource was found that matches the request URI}
Run Code Online (Sandbox Code Playgroud)

请告诉我如何使用LoopJ在post请求的正文中发送json对象数组.最好的祝福,

post request loopj

3
推荐指数
1
解决办法
5438
查看次数

Create xml Chat Bubble With the Shape As in the .png File

Could I please ask if anyone knows how to create an xml shape of the chat bubble below? The only examples I found online were two separate shapes that were put as two separate backgrounds in a layout - a triangle and a rectangle. I tried combining the triangle and rectangle to no avail. The triangle seems to hide in the rectangle. Setting a top attribute to the triangle to move it down makes the ImageView object blank.

Please see …

xml android chat shape balloon

2
推荐指数
1
解决办法
6797
查看次数

标签 统计

android ×1

balloon ×1

chat ×1

loopj ×1

post ×1

request ×1

shape ×1

xml ×1