Peer to peer form tansfer for ODK collect
using Wifi.
Note :
Lead device = Server
Other device = Client
Advantages :
- No HARD CODING OF PORT NUMBER (use next available port).
- Easy to use
How to use?
You need two devices with android API 16 or above. On 1st device:
- Click
Lead device
. - Wait for QRCode to be seen.
On 2nd device:
4. Click Join Lead
.
5. Scan QRCode.
6. If Connect
button if seen else click Join lead
again.
7. Wait for connection to be established.
Transfer forms.
- Click
RECEIVE FORM
on one device. SEND FORMS
on other device. Select forms to be sent. Click send button.
Screen shots: Lead device Other Device
Feature: Connect two devices using QRCODE. Semi-bidirectional form transfer is possible.
The lead
device:
1.creats a hotspot
2. Accetps Socket connection
3. Creates QRCode
The other
device:
1. Scan QRCode
3. Connects to hotspot
4. Connect as Client
Issues: Connecting to hotspot sometimes fails. Yet to handle broken connection during form transfer.