package citySlikkersV1.RequestHandler; import java.io.UnsupportedEncodingException; import java.util.ArrayList;
import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.message.BasicNameValuePair; import org.apache.http.protocol.HTTP; import citySlikkerV1.UserInterface.GlobalData; public class ItemExecutionHandler { private String response; public ItemExecutionHandler() { this.response=null; } public String getURL() { String URLString = ""; return URLString; } public UrlEncodedFormEntity ItemExectionString(int subcode,int OtherUserid,int ItemId,int Boxid) { UrlEncodedFormEntity entity1 = null ; try { ArrayList<BasicNameValuePair> pairs =new ArrayList<BasicNameValuePair>(); pairs.add(new BasicNameValuePair("CCODE","7")); pairs.add(new BasicNameValuePair("SUBCODE",""+subcode)); pairs.add(new BasicNameValuePair ("UID",""+GlobalData.UserId)); pairs.add(new BasicNameValuePair("OID",""+OtherUserid)); pairs.add(new BasicNameValuePair("ITEMID",""+ItemId)); pairs.add(new BasicNameValuePair("BOXID",""+Boxid)); entity1 = new UrlEncodedFormEntity(pairs, HTTP.UTF_8); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } return entity1; } public void setResponse(String res) { this.response = res; } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en