Skip to content

JimSeker/networking

Repository files navigation

Android Network Examples

depreciated/ is the httpClientDemo 1 and 2, which can't be used at api23+. httpclient has been removed. No longer updated. Here for historial reasons only.

eclipse/ is the examples for use in eclipse. This is no longer updated. The rest of the examples are in Android studio format.

JavaNetwork/ shows simple client and server code in java (not Android)

ReSTServices/ are examples of how to android with ReST Services/API (web services).

DownloadDemo (java) shows how to use the Download service in android to files via http protocol. ie downloading pictures.

HttpUrlConDemoAsync (java) show how to use the HttpUrlconnection to connect to website and download the webpage. Uses an AsyncTask

HttpUrlConDemothread (java) show how to use the HttpUrlconnection to connect to website and download the webpage. Uses a Thread.

tcpserv (java) is one part of 2 apps (tcpclient). They demo how two apps can communicate via a socket. Assumes emulators, but if you know the IP address of TCPServ app, it will work on phones.

tcpserv_kt (kotlin) is one part of 2 apps (tcpclient_kt). They demo how two apps can communicate via a socket. Assumes emulators, but if you know the IP address of TCPServ app, it will work on phones. note it will work java client as well.

TCPclient (java) is one part of 2 apps (tcpserv). They demo how two apps can communicate via a socket. Assumes emulators, but if you know the IP address of TCPServ app, it will work on phones.

TCPclient_kt (kotlin) is one part of 2 apps (tcpserv_kt). They demo how two apps can communicate via a socket. Assumes emulators, but if you know the IP address of TCPServ app, it will work on phones. Note it will work the java server as well.

WebVeiwDemo shows how to use the webView widget.


These are example code for University of Wyoming, Cosc 4730 Mobile Programming course and cosc 4735 Advance Mobile Programing course. All examples are for Android.