ConnectionConfiguration configuration = new ConnectionConfiguration(HOST, PORT)
configuration.setDebuggerEnabled(true); configuration.setSecurityMode(SecurityMode.disabled)
conn.connect();
/**
* Created by huang on 2016/12/3.
*/
public class ProtacolObjc implements Serializable {
public String toXml() {
XStream stream = new XStream();
//将根节点转换为类名
stream.alias(this.getClass().getSimpleName(), this.getClass());
return stream.toXML(this);
}
public Object fromXml(String xml) {
XStream x = new XStream();
x.alias(this.getClass().getSimpleName(), this.getClass());
return x.fromXML(xml);
}
//创建Gson数据和字符串之间转换的方法,适应多种数据
public String toGson() {
Gson gson = new Gson();
return toGson();
}
public Object fromGson(String result) {
Gson gson = new Gson();
return gson.fromJson(result, this.getClass());
}
}
import android.os.Handler;
/**
* Created by huang on 2016/12/5.
*/
public class ThreadUtils {
private static Handler handler = new Handler();
public static void runUIThread(Runnable r){
handler.post(r);
}
public static void runINThread(Runnable r){
new Thread(r).start();
}
}
/**
* Created by huang on 2016/12/3.
* 消息内容
*/
public class QQMessage extends ProtacolObjc {
public String type = QQmessageType.MSG_TYPE_CHAT_P2P;// 类型的数据 chat login
public long from = 0;// 发送者 account
public String fromNick = "";// 昵称
public int fromAvatar = 1;// 头像
public long to = 0; // 接收者 account
public String content = ""; // 消息的内容 约不?
public String sendTime = getTime(); // 发送时间
public String getTime() {
Date date = new Date(System.currentTimeMillis());
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("mm-DD HH:mm:ss");
return format.format(date);
}
public String getTime(Long time) {
Date date = new Date(time);
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("mm-DD HH:mm:ss");
return format.format(date);
}
}
/**
* Created by huang on 2016/12/3.
* 消息类型
*/
public class QQmessageType {
public static final String MSG_TYPE_REGISTER = "register";// 注册
public static final String MSG_TYPE_LOGIN = "login";// 登录
public static final String MSG_TYPE_LOGIN_OUT = "loginout";// 登出
public static final String MSG_TYPE_CHAT_P2P = "chatp2p";// 聊天
public static final String MSG_TYPE_CHAT_ROOM = "chatroom";// 群聊
public static final String MSG_TYPE_OFFLINE = "offline";// 下线
public static final String MSG_TYPE_SUCCESS = "success";//成功
public static final String MSG_TYPE_BUDDY_LIST = "buddylist";// 好友
public static final String MSG_TYPE_FAILURE = "failure";// 失败
}
import com.example.huang.imsocket.bean.ProtacolObjc;
/*
*消息本身 包括 账号、头像和昵称
*
*/
public class QQBuddy extends ProtacolObjc {
public long account;
public String nick;
public int avatar;
}
/**
* Created by huang on 2016/12/3.
*/
public class QQBuddyList extends ProtacolObjc {
public ArrayList<QQBuddy> buddyList = new ArrayList<>();
}
import android.util.Log;
import com.example.huang.imsocket.bean.QQMessage;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
/**
* Created by huang on 2016/12/3.
* 连接 服务器
*/
public class QQConnection extends Thread {
private static final String TAG = "QQConnection";
private Socket client;
private DataOutputStream write;
private DataInputStream read;
public static final String HOST = "192.168.23.48";
public static final int POST = 5225;
private boolean flag = true;
private List<OnQQmwssagereceiveLisener> mOnQQmwssagereceiveLisener = new ArrayList<>();
public void addOnQQmwssagereceiveLisener(OnQQmwssagereceiveLisener lisener) {
mOnQQmwssagereceiveLisener.add(lisener);
}
public void removeOnQQmwssagereceiveLisener(OnQQmwssagereceiveLisener lisener) {
mOnQQmwssagereceiveLisener.remove(lisener);
}
public interface OnQQmwssagereceiveLisener {
public void onReiceive(QQMessage qq);
}
@Override
public void run() {
super.run();
while (flag) {
try {
String utf = read.readUTF();
QQMessage message = new QQMessage();
QQMessage msg = (QQMessage) message.fromXml(utf);
if (msg != null) {
for (OnQQmwssagereceiveLisener lisner : mOnQQmwssagereceiveLisener)
lisner.onReiceive(msg);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void connect() {
try {
if (client == null) {
client = new Socket(HOST, POST);
write = new DataOutputStream(client.getOutputStream());
read = new DataInputStream(client.getInputStream());
flag = true;
this.start();
Log.e(TAG, "connect: "+(write==null)+"---"+ (read == null));
}
} catch (Exception e) {
e.printStackTrace();
}
}
public void disconnect() {
if (client != null) {
flag = false;
this.stop();
try {
read.close();
} catch (IOException e) {
e.printStackTrace();
}
try {
write.close();
} catch (IOException e) {
e.printStackTrace();
}
try {
client.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void send(String xml) throws IOException {
write.writeUTF(xml);
write.flush();
}
public void send(QQMessage qq) throws IOException {
write.writeUTF(qq.toXml());
write.flush();
}
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_splash"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/splash_bg">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@mipmap/conversation_bg_logo" />
</RelativeLayout>
import com.example.huang.imsocket.R;
public class SplashActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().hide(); //隐藏标栏
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); //全屏显示
setContentView(R.layout.activity_splash);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(SplashActivity.this, LoginActivity.class));
finish();
}
}, 4000);
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#aabbdd"
android:gravity="center"
android:orientation="vertical">
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/conversation_bg_logo" />
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="8dp"
android:gravity="center_horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="账号:"
android:textColor="#000" />
<EditText
android:id="@+id/et_accoun"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:gravity="center"
android:hint="输入账号" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="4dp"
android:gravity="center_horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="密码:"
android:textColor="#000" />
<EditText
android:id="@+id/et_pwd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:gravity="center"
android:hint="输入密码" />
</TableRow>
<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="80dp"
android:layout_marginRight="80dp"
android:layout_marginTop="8dp"
android:onClick="sendmessage"
android:text="登录" />
</TableLayout>
</LinearLayout>
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.example.huang.imsocket.R;
import com.example.huang.imsocket.bean.Myapp;
import com.example.huang.imsocket.bean.QQBuddyList;
import com.example.huang.imsocket.bean.QQMessage;
import com.example.huang.imsocket.bean.QQmessageType;
import com.example.huang.imsocket.core.QQConnection;
import com.example.huang.imsocket.service.IMService;
import com.example.huang.imsocket.util.ThreadUtils;
import java.io.IOException;
/**
* Created by huang on 2016/12/3.
*/
public class LoginActivity extends Activity {
private static final String TAG = "LoginActivity";
private EditText et_accoun;
private EditText et_pwd;
private String accoun;
private QQConnection conn;
private QQConnection.OnQQmwssagereceiveLisener lisener = new QQConnection.OnQQmwssagereceiveLisener() {
@Override
public void onReiceive(final QQMessage qq) {
final QQBuddyList list = new QQBuddyList();
final QQBuddyList list2 = (QQBuddyList) list.fromXml(qq.content);
if (QQmessageType.MSG_TYPE_BUDDY_LIST.equals(qq.type)) {
ThreadUtils.runUIThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getBaseContext(), "成功", Toast.LENGTH_SHORT).show();
Myapp.me = conn;
Myapp.username = accoun;
Myapp.account = accoun + "@qq.com";
Intent intent = new Intent(LoginActivity.this, contactActivity.class);
intent.putExtra("list", list2);
startActivity(intent);
Intent data = new Intent(LoginActivity.this, IMService.class);
startService(data);
finish();
}
});
} else {
ThreadUtils.runUIThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getBaseContext(), "登陆失败", Toast.LENGTH_SHORT).show();
}
});
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
et_accoun = (EditText) findViewById(R.id.et_accoun);
et_pwd = (EditText) findViewById(R.id.et_pwd);
ThreadUtils.runINThread(new Runnable() {
@Override
public void run() {
try {
conn = new QQConnection();
conn.addOnQQmwssagereceiveLisener(lisener);
conn.connect();
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public void sendmessage(View view) {
accoun = et_accoun.getText().toString().trim();
final String password = et_pwd.getText().toString().trim();
Log.i(TAG, "sendmessage: " + accoun + "#" + password);
ThreadUtils.runINThread(new Runnable() {
@Override
public void run() {
QQMessage message = new QQMessage();
message.type = QQmessageType.MSG_TYPE_LOGIN;
message.content = accoun + "#" + password;
String xml = message.toXml();
if (conn != null) {
try {
conn.send(xml);
} catch (IOException e) {
e.printStackTrace();
}
}
}
});
}
@Override
protected void onDestroy() {
super.onDestroy();
conn.removeOnQQmwssagereceiveLisener(lisener);
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#aabbcc"
android:orientation="vertical">
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center"
android:text="联系人列表"
android:textColor="#6d00"
android:textSize="23dp" />
<ListView
android:id="@+id/lv_contact"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
</LinearLayout>
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.huang.imsocket.R;
import com.example.huang.imsocket.bean.Myapp;
import com.example.huang.imsocket.bean.QQBuddyList;
import com.example.huang.imsocket.bean.QQMessage;
import com.example.huang.imsocket.bean.QQmessageType;
import com.example.huang.imsocket.core.QQConnection;
import com.example.huang.imsocket.util.ThreadUtils;
import java.util.ArrayList;
import butterknife.Bind;
import butterknife.ButterKnife;
import cn.itcast.server.bean.QQBuddy;
/**
* Created by huang on 2016/12/5.
*/
public class contactActivity extends Activity {
private static final String TAG = "contactActivity";
@Bind(R.id.tv_title)
TextView tv_title;
@Bind(R.id.lv_contact)
ListView lv_contact;
private QQBuddyList list;
private ArrayList<QQBuddy> BuddyList = new ArrayList<>();
private ArrayAdapter adapter = null;
private QQConnection.OnQQmwssagereceiveLisener listener = new QQConnection.OnQQmwssagereceiveLisener() {
@Override
public void onReiceive(QQMessage qq) {
if (QQmessageType.MSG_TYPE_BUDDY_LIST.equals(qq.type)) {
QQBuddyList qqlist = new QQBuddyList();
QQBuddyList qqm = (QQBuddyList) qqlist.fromXml(qq.content);
BuddyList.clear();
BuddyList.addAll(qqm.buddyList);
ThreadUtils.runUIThread(new Runnable() {
@Override
public void run() {
saveAndNotify();
}
});
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contact);
ButterKnife.bind(this);
Myapp.me.addOnQQmwssagereceiveLisener(listener);
Intent intent = getIntent();
list = (QQBuddyList) intent.getSerializableExtra("list");
BuddyList.clear();
BuddyList.addAll(list.buddyList);
saveAndNotify();
}
@Override
protected void onDestroy() {
super.onDestroy();
Myapp.me.removeOnQQmwssagereceiveLisener(listener);
}
private void saveAndNotify() {
if (BuddyList.size() < 1) {
return;
}
if (adapter == null) {
adapter = new ArrayAdapter<QQBuddy>(getBaseContext(), 0, BuddyList) {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
viewHolder holder;
if (convertView == null) {
convertView = View.inflate(getContext(), R.layout.item_contacts, null);
holder = new viewHolder(convertView);
convertView.setTag(holder);
} else {
holder = (viewHolder) convertView.getTag();
}
QQBuddy qqBuddy = BuddyList.get(position);
holder.tv_nick.setText(qqBuddy.nick);
holder.tv_account.setText(qqBuddy.account + "@qq.com");
if (Myapp.username.equals(qqBuddy.account + "")) {
holder.tv_nick.setText("[自己]");
holder.tv_nick.setTextColor(Color.GRAY);
} else {
holder.tv_nick.setTextColor(Color.RED);
}
return convertView;
}
};
lv_contact.setAdapter(adapter);
lv_contact.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
QQBuddy qqbuddy = BuddyList.get(position);
if (Myapp.username.equals(qqbuddy.account + "")) {
Toast.makeText(getBaseContext(), "不能和自己聊天", Toast.LENGTH_SHORT).show();
} else {
Intent intent = new Intent(contactActivity.this, ChatActivity.class);
intent.putExtra("account", qqbuddy.account + "");
intent.putExtra("nick", qqbuddy.nick + "");
startActivity(intent);
}
}
});
} else {
adapter.notifyDataSetChanged();
}
}
static class viewHolder {
@Bind(R.id.iv_contact)
ImageView iv_contact;
@Bind(R.id.tv_nick)
TextView tv_nick;
@Bind(R.id.tv_account)
TextView tv_account;
public viewHolder(View view) {
ButterKnife.bind(this, view);
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/tv_name"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="#aa119988"
android:gravity="center"
android:text="和谁谁聊天中........."
android:textSize="19dp" />
<ListView
android:id="@+id/lv_chat"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:id="@+id/et_sms"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="1"
android:hint="输入聊天" />
<Button
android:id="@+id/btn_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="发送" />
</LinearLayout>
</LinearLayout>
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.huang.imsocket.R;
import com.example.huang.imsocket.bean.Myapp;
import com.example.huang.imsocket.bean.QQMessage;
import com.example.huang.imsocket.bean.QQmessageType;
import com.example.huang.imsocket.core.QQConnection;
import com.example.huang.imsocket.util.ThreadUtils;
import java.io.IOException;
import java.util.ArrayList;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
* Created by huang on 2016/12/3.
*/
public class ChatActivity extends Activity {
private static final String TAG = "ChatActivity";
@Bind(R.id.tv_name)
TextView tv_name;
@Bind(R.id.lv_chat)
ListView lv_chat;
@Bind(R.id.et_sms)
EditText et_sms;
private ArrayAdapter<QQMessage> adapter = null;
private ArrayList<QQMessage> list = new ArrayList<>();
private String account;
@OnClick(R.id.btn_send)
public void send(View view) {
String sendsms = et_sms.getText().toString().trim();
if (TextUtils.isEmpty(sendsms)) {
Toast.makeText(this, "消息不能为空", Toast.LENGTH_SHORT).show();
return;
}
et_sms.setText("");
final QQMessage qq = new QQMessage();
qq.type = QQmessageType.MSG_TYPE_CHAT_P2P;
qq.content = sendsms;
qq.from = Long.parseLong(Myapp.username);
qq.to = Long.parseLong(account);
list.add(qq);
setAdapteORNotify();
ThreadUtils.runINThread(new Runnable() {
@Override
public void run() {
try {
Myapp.me.send(qq);
} catch (IOException e) {
e.printStackTrace();
}
}
});
}
private QQConnection.OnQQmwssagereceiveLisener listener = new QQConnection.OnQQmwssagereceiveLisener() {
@Override
public void onReiceive(final QQMessage qq) {
if (QQmessageType.MSG_TYPE_CHAT_P2P.equals(qq.type)) {
ThreadUtils.runUIThread(new Runnable() {
@Override
public void run() {
list.add(qq);
setAdapteORNotify();
}
});
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chat);
ButterKnife.bind(this);
Myapp.me.addOnQQmwssagereceiveLisener(listener);
Intent intent = getIntent();
account = intent.getStringExtra("account");
String nick = intent.getStringExtra("nick");
tv_name.setText("和" + nick + "聊天中......");
setAdapteORNotify();
}
@Override
protected void onDestroy() {
super.onDestroy();
Myapp.me.removeOnQQmwssagereceiveLisener(listener);
}
private void setAdapteORNotify() {
if (list.size() < 1) {
return;
}
if (adapter == null) {
adapter = new ArrayAdapter<QQMessage>(this, 0, list) {
@Override
public int getViewTypeCount() {
return 2;
}
@Override
public int getItemViewType(int position) {
QQMessage msg = list.get(position);
long fromId = Long.parseLong(Myapp.username);
if (fromId == msg.from) {
return 0;
}
return 1;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
int type = getItemViewType(position);
if (type == 0) {
viewHolder holder1 = null;
if (convertView == null) {
holder1 = new viewHolder();
convertView = View.inflate(getBaseContext(), R.layout.item_sms_send, null);
holder1.tv_send_time = (TextView) convertView.findViewById(R.id.tv_send_time);
holder1.tv_send = (TextView) convertView.findViewById(R.id.tv_send);
convertView.setTag(holder1);
} else {
holder1 = (viewHolder) convertView.getTag();
}
QQMessage qqMessage = list.get(position);
holder1.tv_send_time.setText(qqMessage.sendTime);
holder1.tv_send.setText(qqMessage.content);
return convertView;
} else if (type == 1) {
viewHolder holder2 = null;
if (convertView == null) {
holder2 = new viewHolder();
convertView = View.inflate(getBaseContext(), R.layout.item_sms_receive, null);
holder2.tv_receive_time = (TextView) convertView.findViewById(R.id.tv_receive_time);
holder2.tv_receive = (TextView) convertView.findViewById(R.id.tv_receive);
convertView.setTag(holder2);
} else {
holder2 = (viewHolder) convertView.getTag();
}
QQMessage qqMessage = list.get(position);
holder2.tv_receive_time.setText(qqMessage.sendTime);
holder2.tv_receive.setText(qqMessage.content);
return convertView;
}
return convertView;
}
};
lv_chat.setAdapter(adapter);
} else {
adapter.notifyDataSetChanged();
}
if (lv_chat.getCount() > 0) {
lv_chat.setSelection(lv_chat.getCount() - 1);
}
}
class viewHolder {
TextView tv_send_time;
TextView tv_send;
TextView tv_receive_time;
TextView tv_receive;
}
}
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;
import com.example.huang.imsocket.bean.Myapp;
import com.example.huang.imsocket.bean.QQMessage;
import com.example.huang.imsocket.core.QQConnection;
import com.example.huang.imsocket.util.ThreadUtils;
/**
* Created by huang on 2016/12/7.
*/
public class IMService extends Service {
private QQConnection.OnQQmwssagereceiveLisener lisener = new QQConnection.OnQQmwssagereceiveLisener() {
@Override
public void onReiceive(final QQMessage qq) {
ThreadUtils.runUIThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getBaseContext(), "收到好友消息: " + qq.content, Toast.LENGTH_SHORT).show();
}
});
}
};
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public void onCreate() {
super.onCreate();
Toast.makeText(getBaseContext(), "服务开启", Toast.LENGTH_SHORT).show();
Myapp.me.addOnQQmwssagereceiveLisener(lisener);
}
@Override
public void onDestroy() {
Myapp.me.removeOnQQmwssagereceiveLisener(lisener);
super.onDestroy();
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.huang.imsocket">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.example.huang.imsocket.activity.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.huang.imsocket.activity.LoginActivity"
android:theme="@android:style/Theme.NoTitleBar"></activity>
<activity
android:name="com.example.huang.imsocket.activity.ChatActivity"
android:theme="@android:style/Theme.NoTitleBar"></activity>
<activity
android:name="com.example.huang.imsocket.activity.contactActivity"
android:theme="@android:style/Theme.NoTitleBar"></activity>
<service android:name=".service.IMService" />
</application>
</manifest>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有