Android Chat client demo open source. Basic Chat function basically has, the database also has been built, the server uses the Baidupush. You can use them directly!!。 (Hope two mobile phone communication, change Pushid can be)
Hello:
I was flying and recently wrote a chat with the Android client. Share this demo today. The original Macau can be downloaded directly to GitHub. If you have any questions, you can contact me.
A few notes:
1:android Chat client demo, contains the basic functions of IM.
1.1 such as GIF dynamic expression display, voice, chat expression, photo, multi-image of the transmission, the processing of large pictures, the processing of the ListView cache.
1.2 Database has been installed, is a complete project, can be directly used.
1.3 The server is using the Baidu push service. (the image is temporarily not processing the upload server, just uploaded the local sdcard path)
1.4 This project is also worth seeing is the ListView reuse processing. There are two main ways of handling this.
1.5 This project for the convenience of testing, now all the information is self-issued to themselves. You can also refer to the Baidu push document, modify the corresponding ID, to other mobile phone sent.
2: Where you can learn from (ListView processing) There are two main types of this project:
1. The listview of the Main interface uses Getitemviewtype () and Getviewtypecount () to display different item types depending on the type, which enables a ListView to display multiple styles of item layout
(such as the chat interface of the left and right chat layout such as text item, picture item, voice item.) can see Messageadapter.java files)
2: Create a Itemview method (different styles define different Java files):
The processing and logic of view is dispersed into another file, and the function of reuse is realized. For example, in the Itemview package, we created the Imagegridsingletypeview.
This only needs to set the r.layout.xx layout file in Getlayoutresourceid (). and then Initview () initialize the layout as well. The data for each view is then set in Notifydatachanged ().
This benefit can be handled separately and easily managed. Will not make the adapter code too complex.
(for example, the album interface can see Imagegridsingletypeview.java,pickphotosingletypeview.java,imagegridadapter.java, Imagebucketadapter.java)
If you have questions, you can contact:
@blog: http://blog.csdn.net/pangzaifei/article/details/43023625
@github: Https://github.com/pangzaifei/zfIMDemo
@qq: 1660380990
@email: [Email protected]
GitHub Address: Https://github.com/pangzaifei/zfIMDemo
Nonsense not much to say, on. Concrete implementation, we can see the code, there are problems can contact me.
My other app, already online, is called "Music Bean", you can go to the store to download a look.
"Music Peas"
This is originally based on a foreign Daniel from the foundation of Open source iteration. Open source if you need to.
The
Android Chat client demo is open source. Basic Chat function basically has, the database also has been built, the server uses the Baidupush. You can use them directly!!。 (Hope two mobile phone communication, change Pushid can)