80,351
社区成员
发帖
与我相关
我的任务
分享
public void getPartNum() {
final String url = "http://" + Constant.IP_ADDRESS + ":8081/FightLandlordServer/getGroupPeopleInfo.jsp";
final Map<String, String> map = new HashMap<>();
String groupName = spGroup.getSelectedItem().toString();
map.put("groupName", groupName);
new Thread() {
@Override
public void run() {
String result = HttpConnection.doPostWithParams(url, map, "gbk");
Bundle bundle = new Bundle();
bundle.putString("tempMsg", result);
Message message = new Message();
message.what = Constant.GET_GROUP_PEOPLE;
message.setData(bundle);
handler.sendMessage(message);
}
}.start();
}
//获取分组信息
public void getGroup(){
final String url = "http://" + Constant.IP_ADDRESS + ":8081/FightLandlordServer/getGroupInfo.jsp";
final Map<String, String> map = new HashMap<>();
map.put("groupName", "groupName");
new Thread(){
@Override
public void run(){
String result = HttpConnection.doPostWithParams(url, map, "gbk");
Bundle bundle = new Bundle();
bundle.putString("tempMsg", result);
Message message = new Message();
message.what=Constant.GET_NOT_NULL;
message.setData(bundle);
handler.sendMessage(message);
}
}.start();
}