The working principle of the Android utility is mainly to construct a complete application system through a set of windows. What is distributed to each end user is an application, discuss the tools required for the development environment for building Android applications.
The Android utility supports some optional command line parameters to provide powerful features, such as copying a file to a device or copying a file from a device. You can use shell command line parameters to connect to the mobile phone itself and send basic shell commands. Figure 4 shows the adb shell command running on an actual device connected to a Windows laptop using a USB cable.
In this shell environment, you can: Display network configurations, and network configurations can display multiple network connections. Note these multiple network connections: lo is a local or loopback connection. The layout contains a TextView, which is actually a piece of static text. It cannot be edited. The text is set to black and horizontally centered using the gravity attribute.
Tiwlan0 is a Wi-Fi connection provided by the local DHCP server. Displays the content of the PATH environment variable. Run the su command to become a Super User. Lists the directories that contain an application. Android Application Files are actually archive files.
You can view it through software such as WinZip. The extension is apk. Run the ping command to check whether Google.com is available. In the same command prompt environment, you can also interact with the SQLite database, start programs, and execute many other system-level tasks.
Imagine that you are connecting to the phone, so this is a great feature. In the next section, you will create a simple Android utility. This section describes how to build an Android Application. The sample application is very simple: a modified "Hello Android" application.
You will make a slight modification to make the screen background all white, so that the phone can be used as a flashlight. This example is not very creative, but can be used as a useful example. Download the complete source code. To create an application in Eclipse, select File> New> Android project to start the New Android Project Wizard.
Next, create a simple application with an activity and a UI layout in main. xml. The layout contains a text element. You can modify this text element to display Android FlashLight. The following list shows the simple layout.
Of course, this application is not very powerful. However, if you want to read a book and do not want to disturb your sleeping lover, or if you want to check the fuse box in the basement when the power is down, this application is very convenient.
Conclusion
In this article, you have read the introduction to the Android utility and built a small application. We hope that the examples in this article will arouse your interest in further exploring the Android platform. Android is expected to become an open-source platform that has a profound impact on the market. Its use will far surpass that of mobile phones.