70 likes | 208 Vues
This guide introduces the essentials of Android programming, focusing on setting up your development environment with Eclipse and the Java SDK. You'll learn how to create your first Hello World application, create an Android Virtual Device (AVD), and understand debugging techniques using Logcat. The tutorial covers essential topics such as managing threads for GUI handling, initiating server connections, and handling input/output operations. Detailed links to development resources from Oracle and Android's official documentation provide you with valuable support as you embark on your Android programming journey.
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