1. src/ui/adapter/FriendCardAdapter.java

@Override
    public View getView(int position, View convertView, ViewGroup arg2) {
        CellHolder cell = null;
        if (convertView == null) {
            cell = new CellHolder();
            convertView = inflater.inflate(R.layout.friend_card_cell, null);
            cell.alpha = (TextView) convertView.findViewById(R.id.alpha);
            cell.avatarImageView = (ImageView) convertView.findViewById(R.id.avatarImageView);
            cell.titleView = (TextView) convertView.findViewById(R.id.title);
            cell.desView = (TextView) convertView.findViewById(R.id.des);
            convertView.setTag(cell);
        } else {
            cell = (CellHolder) convertView.getTag();
        }

final UserInfo model = cards.get(position);
        ImageLoader.getInstance().displayImage(CommonValue.BASE_URL+model.userHead, cell.avatarImageView, CommonValue.DisplayOptions.default_options);
        cell.titleView.setText(model.nickName);
        cell.desView.setText( model.description);
        cell.alpha.setVisibility(View.GONE);
        convertView.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View arg0) {
                //((Friend)context).createChat(model.userId+XmppConnectionManager.BASE_XMPP_SERVER_NAME);
                ((Friend)context).createChat(model.userId+"@"+XmppConnectionManager.BASE_XMPP_SERVER_NAME+"/android/");
            }
        });

convertView.setOnLongClickListener(new OnLongClickListener() {

@Override
        public boolean onLongClick(View arg0) {
            ((Friend)context).show2OptionsDialog(new String[]{"删除好友"}, model);
            return true;
        }
    });

return convertView;
}

2. /src/config/XmppConnectionManager.java

/**
    * XMPP服务器连接工具类.
    */
    public class XmppConnectionManager {
        //final String XmppHost = "182.92.101.207";
        final String XmppHost = "192.168.1.103";
        final int XmppPort = 5222;
        //public static String BASE_XMPP_SERVER_NAME = "@aliyun-05808812";
        public static String BASE_XMPP_SERVER_NAME = "chat.com";

3. /src/config/CommonValue.java

public class CommonValue {
        public static String PackageName = "com.donal.wechat";

//public static String BASE_API = "http://182.92.101.207:8080/wechat/api/";
        //public static String BASE_URL = "http://182.92.101.207:8080/";
        public static String BASE_API = "http://192.168.1.103:8080/wechat/api/";
        public static String BASE_URL = "http://192.168.1.103:8080/";

wechat客户端修改的更多相关文章

  1. 邮件客户端修改密码—OWA

    邮件客户端修改密码—OWA 1.登录OWA 2.输入用户名 3.点击选项 4.更改密码

  2. nfs nobody,nobody 需要在nfs客户端修改从nfs服务器端共享过来的目录怎么办?

    1,加入我们使用nfs共享安装oracle, 安装oracle需要修改base,data,orainventory等等目录及自目录的属主及权限,一般会继承nfs客户端目录的权限及属主 groupadd ...

  3. 基于androidpn客户端修改的AndroidPNClient

    最近在做推送,采用的框架是androidpn,但对于客户端实在是修改得受不了了,特别是重连和连接那一块,有些BUG的修改实在是难以下手,比如在重连那里,原来的写法是在死循环中不断调用 xmppMana ...

  4. PPTP服务端与客户端 修改默认PPTP默认端口1723

    linux pptp服务端:我们在Linux下建立的pptpd端口号默认是1723,有时候这个端口并不是那么的好用,不是麽?所以服务端修改端口号比较简单 修改 /etc/services 文件查找 1 ...

  5. 金蝶KIS客户端修改IP连接服务器的方法

    问题现象:服务器IP变更后,金蝶KIS客户端打开时提示多个错误,并会自动关闭,无法联网登录 1. 到下面位置修改注册表 Windows Registry Editor Version 5.00 [HK ...

  6. 使用SEP禁止客户端修改IP地址 - 飞舞的菜刀 - 51CTO技术博客

    1.首先从注册表中搜寻 IP地址所在的位置,查到几项,此项即可: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Paramete ...

  7. Linux中使用Electronic WeChat客户端

    微信推出了Windows版和Mac版,一直没有推出也不会推出Linux版本,这就催生了Electronic WeChat(https://github.com/geeeeeeeeek/electron ...

  8. gitlab中修改项目名称客户端修改方法

    如果gitlab项目名称已经修改,对于本地已经克隆下来的仓库,可以使用如下命令进行修改: git remote set-url origin 新的项目路径

  9. shell脚本检查是否存在tun0虚拟网卡,若不不存在服务器更改port,并重启服务器,客户端修改port,并重新启动客户端

    openvp 客户端 /home 目录下各脚本文件名 [root@jira home]# ls openvpn_server_restart.sh openvpn_tunnel_monitor.sh ...

随机推荐

  1. WINDOWS HYPER-V加新网卡,设置网络出错

    新网卡加入,设置好IP之后,HYPER-V需要更改相应外部网络连接,然后重新生成新的虚拟连接网卡. 不然,虚拟机无法正常使用网络. 但我昨天在绑定新的网站时,出现如下错误: Adding a new ...

  2. android 自定义按钮的外边框

    <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http: ...

  3. ActionBar官方教程(7)自定义操作项的view,如何得到它及处理它的事件

    Adding an Action View An action view is a widget that appears in the action bar as a substitute for ...

  4. Using innodb_large_prefix to avoid ERROR #1071,Specified key was too long; max key length is 1000 bytes

    Using innodb_large_prefix to avoid ERROR 1071        单列索引限制上面有提到单列索引限制767,起因是256×3-1.这个3是字符最大占用空间(ut ...

  5. URAL(DP集)

    这几天扫了一下URAL上面简单的DP 第一题 简单递推 1225. Flags #include <iostream> #include<cstdio> #include< ...

  6. hadoop2.2编程: 数据压缩

    本文主要讨论hadoop的数据压缩与解压缩代码的书写 Compressing and decompressing streams with CompressionCodec import org.ap ...

  7. bzoj3165 1568

    1568是3165的弱化版,发的代码是3165的这道题完全没想出来,是看wyl大神的题解http://hi.baidu.com/wyl8899/item/2deafd3a376ef2d46d15e99 ...

  8. C#编程实现Excel文档中搜索文本

    有了在Word文档中编程实现搜索文本的经验,在Excel中实现这个功能也并非难事. 打开Excel的VBA帮助,查看Excel的对象模型,很容易找到完成这个功能需要的几个集合和对象:Applicati ...

  9. Linux Kernel ‘drivers/staging/wlags49_h2/wl_priv.c’本地缓冲区溢出漏洞

    漏洞名称: Linux Kernel ‘drivers/staging/wlags49_h2/wl_priv.c’本地缓冲区溢出漏洞 CNNVD编号: CNNVD-201311-068 发布时间: 2 ...

  10. 制作LiveCD

    1) 需要的工具Redhat9.0.VMware虚拟机,选择用grub作loader 2) 制作ramdisk               A) cd /usr/local && mk ...