Android learning-android Glossary

Source: Internet
Author: User

1. activity: it is the most basic and commonly used component in Android. Simply put, an activity is a whole screen displayed on a mobile phone screen. If you switch from one interface to another, two activities are required.

2. intent: Meaning "intention" in Chinese ". It is used to switch between two activities and transmit data parameters.

Intent is a very important concept in Android. It runs through the Android Application Layer and is the meridian of the Android platform. It has the following features:

(1) intent has cross-process features. Intent can even be used to start a new process to run the service or the entire application. It can be seen that the cross-process features are strong.

(2) intent has greater flexibility. One of the manifestations is that the intent processing module is dynamically bound to automatically or manually select the optimal processing module to complete processing and return.

With these two main features, intent brings a very natural development experience, and also adapts to people's way of thinking. Developers do not need to care about which module and which process responds to their own messages. They only need to pay attention to the implementation of the corresponding functions. This is called the intention-driven approach.

3. View: In any GUI system, the UI elements (usually called controls) on the control interface are a basic content. However, for Android applications, the UI element is called view. This is a little different from the view concept and definition in the VC application. For example, a button can be called a view.

Tool class:

1. ADB: Full name: Android debug bridge. Chinese: Android debug bridge.

It is often used when debugging android. It is a command line debugging tool included in the android SDK. Go to the SDK package: \ android_sdks \ platform-tools.

2. ddms: Dalvik debug monitor service; Chinese: Dalvik debug Monitoring Service.

It is a graphical debugging tool that uses ADB for control and communication.

3. tractview: it is a tool used to view the program debugging information file *. Trace.

This tool is also provided by the android SDK. The format is as follows: trackview filename. Trace

To get the filename. trace file in the program, you need to add the following code to the program:

......

Import Android. OS. Debug

.......

// Start trace. The following statements are generally stored in the oncreate function.

Debug. startmethodtracing ("X ");

...


// End the output of debugging information at the end of the program.

Debug. stopmethodtracing ();

Then, the program will generate a trace file in the root directory of the SD card: X. Trace


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.