Open main menu

DAVE Developer's Wiki β

Changes

Android Development Model

2,398 bytes added, 07:44, 1 October 2012
Android Tools
Please refer to [http://developer.android.com/tools/help/index.html Android Tools page] for detailed information on the available useful tools, including:
* [http://developer.android.com/tools/help/adt.html ADT]: a plugin for Eclipse that provides a suite of tools that are integrated with the Eclipse IDE. It offers you access to many features that help you develop Android applications quickly. ADT provides GUI access to many of the command line SDK tools as well as a UI design tool for rapid prototyping, designing, and building of your application's user interface.* [http://developer.android.com/tools/help/adb.html Android Debug Bridge]: Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:** A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.** A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.** A daemon, which runs as a background process on each emulator or device instance.You can find the adb tool in <sdk>/platform-tools/.* [http://developer.android.com/tools/help/monkeyrunner_concepts.html MonkeyRunner]: The monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code. With monkeyrunner, you can write a Python program that installs an Android application or test package, runs it, sends keystrokes to it, takes screenshots of its user interface, and stores screenshots on the workstation. The monkeyrunner tool is primarily designed to test applications and devices at the functional/framework level and for running unit test suites, but you are free to use it for other purposes, for example to emulate input events as button pressing:<br><pre># Imports the monkeyrunner modules used by this programfrom com.android.monkeyrunner import MonkeyRunner, MonkeyDevice # Connects to the current device, returning a MonkeyDevice objectdevice = MonkeyRunner.waitForConnection(10,"emulator-5554") # Presses the Home buttondevice.press('KEYCODE_HOME',MonkeyDevice.DOWN_AND_UP)</pre>* [http://developer.android.com/tools/help/logcat.html logcat]: The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB shell or directly on the serial console shell to view the log messages.
=== Useful Links ===