1

I want to send some bits like small amount of data (so not text or file) using 3g data connection in the android phones. I don't want to use Wifi and I need some thing like a peer-to-peer connection or client server connection using only the android phones and its 3g/4g functionalities.

Shamika
  • 553
  • 1
  • 4
  • 6

1 Answers1

2

The second part of your question has been answered in the past

Detect network connection type on Android

As for those small bits of data I suggest sending a udp packet every 30 seconds or so to prevent the ip from changing, as per the advice of this question answer.

UDP port changes every time over 3G connection

Community
  • 1
  • 1
VoronoiPotato
  • 3,113
  • 20
  • 30