Porting javacode in android
posted 4 years ago
Are you certain that you do need to change anything? The Android API contains many of the same packages and classes that are present in Java 5; for example, java.net and its Socket, DatagramSocket, URL and HttpURLConnection classes, as well as most others. See http://developer.android.com/reference/packages.html for what's there.