View
225
Download
0
Embed Size (px)
Citation preview
Introduction to Android Creating a hello world project in Android Java Sockets Android Sockets references
Agenda
Download version 1.5 (170 mb)◦ http://developer.android.com/sdk/download.html?
v=android-sdk-windows-1.5_r2.zip◦ Eclipse IDE using ADT( Android development
Tools)
Android
java.net.ServerSocket (Server) java.net.Socket (client)
More information athttp://java.sun.com/j2se/1.5.0/docs/api/java/
net/package-summary.html
Java SDK Sockets API
java.net.ServerSocket (Server)java.net.Socket (Client)
More information athttp://developer.android.com/reference/java/net/package-summary.html
ANDROID Sockets API
Package android.net◦ LocalServerSocket
public LocalServerSocket (String name)◦ LocalSocket
public LocalSocket()
Android Sockets (Local Sockets)
Basically both APIs are the same. Android uses the java API to communicate with other applications which are outside Android.
For internal calls Android provides its own set of Sockets. It is used to communite with aplications inside Android.
Android VS Java APIs
Android◦ http://developer.android.com/guide
Java◦ http://java.sun.com/j2se/1.5.0/docs/api/index.html
References