70 likes | 191 Views
Introduction to Android Programming. Essentials. Eclipse and Java SDK http://www.oracle.com/technetwork/java/javase/downloads/index.html http://www.eclipse.org/downloads/ Android SDK http://developer.android.com/sdk/index.html ADT Plugin for Eclipse
E N D
Essentials • Eclipse and Java SDK • http://www.oracle.com/technetwork/java/javase/downloads/index.html • http://www.eclipse.org/downloads/ • Android SDK • http://developer.android.com/sdk/index.html • ADT Plugin for Eclipse • http://developer.android.com/sdk/eclipse-adt.html#installing
Hello World • http://developer.android.com/resources/tutorials/hello-world.html • Create AVD • Create a new project • Run the Application
Debug/Logging • Breakpoints • Log Class of Android SDK • http://developer.android.com/reference/android/util/Log.html • Logcat for reading logs
Useful pointers • http://developer.android.com/guide/developing/devices/emulator.html#connecting
Project0 in a nutshell Main thread Server thread Connection thread • Initiate other threads • Handles GUI (Handler) • Listens for connections on SERVER_PORT • Handles input and output • Try connecting to local host on REDIR_PORT and create connection thread • Create server thread and start listening on SERVER_PORT (emulator) and create connection thread if there is any incoming connection
Steps involved • Try connecting to local host on REDIR_PORT and create connection thread • Create server thread and start listening on SERVER_PORT (emulator) and create connection thread if there is any incoming connection • Local host • REDIR_PORT • Try connecting to local host on REDIR_PORT and create connection thread • Create server thread and start listening on SERVER_PORT (emulator) and create connection thread if there is any incoming connection