android http post with params
===

I have to convert this http post from javacript to android.

but I encounter a problem for `cids: []` I cant create a jsonobject with this symbol "[ ]". It should be an empty array.

this is my javascript:

    var makeAjaxRequest = function () {
            Ext.getBody().mask('Loading...', 'x-mask-loading', false);
            var obj = {
                uid: 1161,
				cids: []		
            };
            Ext.Ajax.request({
                url: 'http://test.com.my',
                method: 'POST',
                params: { json: Ext.encode(obj) },
                success: function (response, opts) {
                    Ext.getCmp('content').update(response.responseText);
                    Ext.getCmp('status').setTitle('Static test.json file loaded');
                    Ext.getBody().unmask();
                    var data = Ext.decode(response.responseText);
                    Ext.Msg.alert('result::', data.r[1].id, Ext.emptyFn);
                }
            });
        };

this is my android code:

        String[] temp = null; 
	JSONObject json = new JSONObject(); 
	HttpPost post = new HttpPost(url); 
	json.put("uid", 1161); 
	json.put("cids", temp); 
	List postParams = new ArrayList(); 
	postParams.add(new BasicNameValuePair("json", json.toString())); 
	UrlEncodedFormEntity entity = new UrlEncodedFormEntity(postParams); 
	tv1.setText(postParams.toString()); 
	post.setEntity(entity); 
	post.setHeader("Accept", "application/json");
	response = client.execute(post);