java - Android location aware chat application -


i need kind of application.i don't know how 2 devices communicate on internet. think should create database store users information, , create sockets communication. there better way this?

  1. most mobile networks use form of nat, inbound connections mobile devices not possible. you'll need intermediate server. p2p possible, setup connection still need server.

  2. don't reinvent wheel: there lot of servers/libraries/protocols chat. pick one. notable 1 xmpp, open protocol, multiple free oss server implementations , libraries (including android).

  3. additionally can create own server app, login/authentication , location-aware stuff. once 2 users authenticated , location-paired, can hand-off chat part xmpp server.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -