An Simple chat application using P2P.
P2PChat is hosted in the following web site
https://github.com/WideLee/P2PChat
If you think the Android project P2PChat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of P2PChat.
Item | Value |
---|---|
Java File Count | 20 |
Supported screen sizes | [hdpi] |
Target SDK Version | 15 |
Minimum SDK Version | 9 |
Activity Count | 6 |
jar files used | android-support-v4.jar protobuf-java-2.5.0.jar |
Required Permissions | android.permission.ACCESS_NETWORK_STATE android.permission.ACCESS_WIFI_STATE android.permission.CHANGE_NETWORK_STATE android.permission.CHANGE_WIFI_STATE android.permission.INTERNET android.permission.VIBRATE android.permission.WRITE_EXTERNAL_STORAGE |
There are 12 image files in P2PChat. The names of the image files are listed as follows.
bottom_bar.9.png chatfrom_bg_normal.9.png chatfrom_bg_pressed.9.png chatto_bg_normal.9.png chatto_bg_pressed.9.png mini_avatar_shadow.png mm_title_back_normal.9.png mm_title_back_pressed.9.png mm_title_btn_normal.9.png mm_title_btn_pressed.9.png send_error.png send_ok.png
The following screenshort is generated from the image listed above.
P2PChat has the following Java source files.
limk.p2pchat.activity.ChatActivity.java limk.p2pchat.activity.ImageShowActivity.java limk.p2pchat.activity.RegisterActivity.java limk.p2pchat.activity.SplashActivity.java limk.p2pchat.activity.UserListActivity.java limk.p2pchat.adapter.MessageAdapter.java limk.p2pchat.basic.Constant.java limk.p2pchat.basic.MessageBasic.java limk.p2pchat.database.P2PChatDBHelper.java limk.p2pchat.net.BroadcastManager.java limk.p2pchat.net.FileManager.java limk.p2pchat.net.MessageChecker.java limk.p2pchat.net.MessageDownloader.java limk.p2pchat.net.SendMessage.java limk.p2pchat.net.SendPicture.java limk.p2pchat.net.TCPServer.java limk.p2pchat.net.UDPBroadcastReceiver.java limk.p2pchat.net.UDPBroadcastSender.java limk.p2pchat.receiver.MessageReceiver.java limk.p2pchat.service.ServerService.java