daily pastebin goal
78%
SHARE
TWEET

IMService.java

afrilian Jan 25th, 2016 (edited) 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     // ini adalah proses penyimpanan ke database.
  2.     public String sendMessage(String  username, String  tousername, String message, String mkey) throws UnsupportedEncodingException
  3.     {          
  4.         String params = "username="+ URLEncoder.encode(this.username,"UTF-8") +
  5.                         "&password="+ URLEncoder.encode(this.password,"UTF-8") +
  6.                         "&to=" + URLEncoder.encode(tousername,"UTF-8") +
  7.                         "&message="+ URLEncoder.encode(message,"UTF-8") + // save message
  8.                         "&mkey="+ URLEncoder.encode(mkey, "UTF-8") + //must be save the key but didn't work
  9.                         "&action="  + URLEncoder.encode("sendMessage","UTF-8")+
  10.                         "&";       
  11.         Log.i("PARAMS", params);
  12.         return socketOperator.sendHttpRequest(params);     
  13.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top