The mobile LAN feixun tool integrates information chat, File Sending and receiving, and voice calls. The software is developed based on the Flying Pigeon book on the computer, in daily work and life, each person's cell phone will save some of his/her collections, such as music pictures. But if you want to share it with your friends and colleagues, you have to unplug the memory card. This is troublesome. Second, pulling the card from your mobile phone and installing it on his mobile phone is a very tangle, to solve this problem, I thought of the Flying Pigeon book on my computer at ordinary times, so I decided to build a Flying Pigeon book on my mobile phone: Lan flying news!
Premise: connect your phone to the LAN through WiFi
Features:
1. Short Message chat between mobile phones
2. send and receive files between mobile phones
3. voice calls between mobile phones
Knowledge point:
1. send and receive short messages through negotiation with both parties using UDP protocol
2. Voice Transmission and file transmission adopt TCP protocol
3. Multiple Threads are used for file transmission to speed up file transmission.
Difficulty: the entire project mainly involves the use of Java-related knowledge and Android-related features, which are familiar to everyone. The main difficulty lies in the protocol encapsulation of underlying communication, this may be difficult if you have never touched it before, but Guan Jian still needs to do it.
NOTE: If there is noise during a voice call, the sound from the speaker will return to the mic again because the machine does not have an echo cancellation circuit. (Unable to handle Hardware Issues
: Next:
After reading the figure, I will explain the Implementation ideas.
1: The background server obtains the devices in the LAN through the wide report. (pay attention to the android multicast programming class)
2: Identify commands by encapsulating custom UDP protocol (such as message sending and File Sending .)
3: file transmission and voice walkie talkie are implemented by the TCP protocol, in which the voice part (pay attention to audiotrack and audiorecord programming );
4: chatbots use XML to traverse keywords and answer sentences, which is relatively dull.
With the train of thought, this is just a small case. It just takes a lot of time to test and code.
I will not talk about the connection directly.
Apk installation connection:
Softboy official website download link: http://www.softboy.uqc.cn
Apk installation connection: http://www.talkphone.cn/Down/Soft/Detail/39722_0.html
Fan Feng download link: http://bbs.gfan.com/android-4302980-1-1.html
Apk source code connection: http://download.csdn.net/detail/wt0731/4303222#comment