Download presentation
Presentation is loading. Please wait.
1
Sidcley Soares
2
Introduction to Android Creating a hello world project in Android Java Sockets Android Sockets references
3
Download version 1.5 (170 mb) ◦ http://developer.android.com/sdk/download.html? v=android-sdk-windows-1.5_r2.zip http://developer.android.com/sdk/download.html? v=android-sdk-windows-1.5_r2.zip ◦ Eclipse IDE using ADT( Android development Tools)
9
java.net.ServerSocket (Server) java.net.Socket (client) More information at http://java.sun.com/j2se/1.5.0/docs/api/java/ net/package-summary.html
12
Server ◦ Client host:/127.0.0.1 ◦ From Java SDK Client ◦ From Java SDK - by Java SDK Server
13
java.net.ServerSocket (Server) java.net.Socket (Client) More information at http://developer.android.com/reference/java/ net/package-summary.html
16
Server ◦ Client port:2802 ◦ Client host:/10.159.1.132 ◦ From Android
18
Package android.net ◦ LocalServerSocket public LocalServerSocket (String name)String ◦ LocalSocket public LocalSocket()
23
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.
24
Android ◦ http://developer.android.com/guide http://developer.android.com/guide Java ◦ http://java.sun.com/j2se/1.5.0/docs/api/index.ht ml http://java.sun.com/j2se/1.5.0/docs/api/index.ht ml
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.