I am new to Android development and I have to develop a application for my bachelor thesis.
I have to send data over Wifi and GSM/UMTS through a WiFi router to a PC.
I know if I am using WifI that I have to use Java sockets to establish TCP connection between the PC and the mobile device to send data.
But how is it possible to send data over the mobile network? Do I have to add additional program code or does it work automatically if I switch from WiFi to mobile data?
Thanks for your help and excuse my bad knowledge about this topic....