简单的仿QQ聊天安卓APP
该项目用JAVA的socket实现,包含客户端,服务器与数据库,如果想运行需要注意一下几点:
- 服务器更改配置文件dbcpconfig.properties
- 我已经将所需的依赖库也上传了,如果还缺少某些依赖库,需要你自己去下
- 注意客户端的端口号应与服务器的端口号一致。
- 客户端出现服务器异常时,请注意客户端的SERVER_IP,需要保证客户端ping通服务器
###运行效果图:
##该APP的部分UI参考网上流传的高仿陌陌,在此表示感谢。
简单的仿QQ聊天安卓APP
比较容易断开 如何保持长连接呢
您好:
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack av
()
Suppressed: java.lang.NoClassDefFoundError: com.sdust.im.activity.LoginActivity
我用的安卓4.4.2编译的
CilentActivity 数量大于5就不通讯了,请问是什么问题
这里
public class ServerListen {
private final int PORT = 8399;
private ServerSocket server;
private static int Number = 0;
public static void main(String args[]){
new ServerListen().begin();
}
public void begin(){
try {
server = new ServerSocket(PORT);
System.out.println("服务器已经启动...");
} catch (IOException e) {
System.out.println("服务器启动失败");
e.printStackTrace();
}
**while(true){
try {
Socket client = server.accept();
new ClientActivity(this,client);
System.out.println("ClientActivity Num : " + Number++);
} catch (IOException e) {
e.printStackTrace();
}
}**
}
服务器端代码怎么部署呢
I want to learn
大佬我不知道怎么运行 您的代码 as导进去没有任何反应 能告诉一下怎么运行吗 感激不尽
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.