When using the driver of the ALSA architecture, the common errors include-EPIPE, that is,-32? Why? It must be an internal discord in the system! The error of EPIPE occurs during playing because the driver buffer has no data and can be thrown to
The dimensions and sizes must be distinguished by the following units: dp, sp, pt, px, mm, in
Px: pixel, in the unit of pixel size. In the android UI, this unit is the same as the actual physical screen resolution, and is mainly used to
I. Write the network connection proxy settings to the configuration database
1. Use the command line or double-click the emulatoer executable file to open the simulator.
2. Run adb shell on the command line to open the android Console (ensure
The Android system compilation results are all in the out directory of the root directory, and the original project will not be changed.
Out/host content
Out/target content
General content of out/target/common target machine
Product directory of
The interaction mode and interface definition between Android Application modules mainly include the following three aspects:
1. the API provided by the Android framework. The API here needs to be selected by referring to the Android release
If SetContentView (new HellwView (this) is used all the time, it seems that there is always something missing, and the accessibility of defining components using XML in Android is lost, this is quite unpleasant. In this section, we will see a
Daming will write some high-quality blogs in the future, which should be as thorough as possible, and be able to read from different perspectives. When there are many problems, the technology is actually a window, when you have a lot of windows,
An android application is a Linux Process. Each application runs in its own process, which is safe and does not interfere with each other.
An application corresponds to a main thread, which is generally called a UI thread. android complies with
The buttons in the graphic interface are the most common controls. The program structure of the Android response buttons is roughly divided into the following two types:
(1) button Implementation Method for sampling anonymous internal classes:
The
Android implements Post to submit data to the server
Users familiar with web programming are familiar with get and post methods for passing form data.
Here do not specifically introduce the difference between get and post, For details, please
Create submenusA sub-menu is a menu opened on a menu item of an existing menu. you can add sub-menus to any menu. when your program has many functions and can be organized by category, the sub-menu is the best choice. for example, the menu bar (File,
Remove the black shadow of the edge when the ListView slides to the top and bottom: android: fadingEdge = "none" ------------------------------------------ remove the default black background when dragging: android: cacheColorHint = "#00000000" or
After the driver is compiled, another C program is written to test the driver. However, the following error occurs during compilation: [plain] build/core/base_rules.mk: 166: * ** frameworks/base/opengl/libs: MODULE. TARGET. ETC. egl. cfg already
Android provides multiple implementation methods for ListView to make the displayed content more beautiful through custom display layout, but we will find such a problem. When we operate ListView, if you do not use the upper and lower buttons on
The broadcast receiver (BroadcastReceiver) is used to asynchronously receive the broadcast Intent. The broadcast Intent is sent by calling Context. sendBroadcast (), Context. sendOrderedBroadcast (), or Context. sendStickyBroadcast. Generally, a
The specific configuration process will not be redundant. A large number of searches are made online. Mainly: 1) download Android NDK; 2) install Cygwin; 3) configure the environment variable of Android NDK in Cygwin. To put it bluntly, it is to map
Today, the drawer effect is achieved on the mobile phone. It is actually very simple, but the effect is very cool. First, set the xml layout file under layout. Android: layout_width = "fill_parent"Android: layout_height = "fill_parent"> Android: id
ViewRoot is a bridge between the GUI management system and the GUI presentation system. According to ViewRoot's definition, we find that ViewRoot is not a View type, but a Handler. Its main functions are as follows: A. Distribute events initiated by
Thread SecurityIn some cases, the methods you implement may be called in different threads, so they must be implemented as "thread-safe ". This is first reflected in methods that can be called remotely-for example, methods in boundservice. When a
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