title: Which Socket API to use android.net or java.net for UDP Communication in Android?
body: <p>I need UDP Communication between my device and/or an another android device / iPhone / Server etc. </p>
  
  <p>While exploring the android developer site I found that their are two packages java.net (plain Java Classes) and android.net(Looks like they are android specific implementations). Which set of classes I should use so that I don't get any problem while connecting to other devices. Which is the most efficient way to provide UDP socket communication in Android. I saw <a href="https://stackoverflow.com/questions/5904820/android-udp-communication">Android UDP Communication</a> but that also looks incomplete.</p>