@Override
    public void run() {
      // TODO Auto-generated method stub

      MyNameValuePair NameValuePair1 = new MyNameValuePair("app", "api");
      MyNameValuePair NameValuePair2 = new MyNameValuePair("mod", "WeiboStatuses");
      MyNameValuePair NameValuePair3 = new MyNameValuePair("act", "destroy"); // "public_timeline"
      MyNameValuePair NameValuePair4 = new MyNameValuePair("oauth_token", account.getOauth_token());
      MyNameValuePair NameValuePair5 =
          new MyNameValuePair("oauth_token_secret", account.getOauth_token_secret());
      MyNameValuePair NameValuePair6 =
          new MyNameValuePair("id", String.valueOf(statuses.getFeed_id()));
      MyNameValuePair NameValuePair7 = new MyNameValuePair("content", strcontent);
      String result =
          MHttpClient.get(
              ThinkSNSApplication.baseUrl,
              NameValuePair1,
              NameValuePair2,
              NameValuePair3,
              NameValuePair4,
              NameValuePair5,
              NameValuePair6,
              NameValuePair7);

      Message msg = new Message();
      msg.what = delete_comment;
      msg.obj = result;
      mHandler.sendMessage(msg);
    }
Beispiel #2
0
    @Override
    public void run() {
      // TODO Auto-generated method stub
      MyNameValuePair NameValuePair1 = new MyNameValuePair("app", "api");
      MyNameValuePair NameValuePair2 = new MyNameValuePair("mod", "Notifytion");
      MyNameValuePair NameValuePair3 = new MyNameValuePair("act", "get_system_notify");
      MyNameValuePair NameValuePair4 = new MyNameValuePair("oauth_token", account.getOauth_token());
      MyNameValuePair NameValuePair5 =
          new MyNameValuePair("oauth_token_secret", account.getOauth_token_secret());
      MyNameValuePair NameValuePair6 = new MyNameValuePair("user_id", uid);
      MyNameValuePair NameValuePair7 = new MyNameValuePair("format", "php");

      String result =
          MHttpClient.get(
              ThinkSNSApplication.baseUrl,
              NameValuePair1,
              NameValuePair2,
              NameValuePair3,
              NameValuePair4,
              NameValuePair5,
              NameValuePair6,
              NameValuePair7);

      System.out.println("result:::::::" + result);
      Message msg = new Message();
      msg.what = 0x30;
      msg.obj = result;
      mHandler.sendMessage(msg);
    }