tomlepham2010 wrote:
What I am confused about is the actual communication between the pi3 and the android app? So far all research showed creating a webserver to retrieved and send the data.
Your choice.
TCP/IP is probably the fundamental transport (layer 3) mechanism (unless you want to explore BlueTooth).
Then
you have to pick the application protocol (layer 4).
HTTP (including websockets)
GOPHER
FINGER
TELNET
MQTT
FTP
SSH
SAMBA/CIFS
NFS
VPN
Roll-your-own (RYO)
That's the piece your professor is trying to get you to do so that you learn about the common layer 4 protocols and can describe a RYO protocol to show you understand the concepts.
Stop fussing about the hardware connection (layer 1), the IP transport (layer2) and the transmission control (layer3) stuff, that's the easy bit and is all about MAC addresses, IPv4 addresses, IPv6 addresses and port numbers. It's the same for most of the application layer TCP/IP users. (I'm ignoring UDP at the moment.)