The starting and working principle of Surfaceflinger
Start of 1.1.1 Surfaceflinger
Surfaceflinger startup and ServiceManager are similar, they all belong to the system's underlying support services, must be in the early start of the device to run.
Introduction of Broadcastreceiver
Broadcastreceiver, used for asynchronous reception of broadcast intent, broadcast intent by calling Context.sendbroadcast () send, Broadcastreceiver () receive.
The broadcast intent is implemented by calling
Android to get the length and width of the screen, referring to the internet there are a lot of code, but the results are not practical, such as my phone is i9000, screen size is 480*800px, the result is 320*533
The result is very unreliable, so I
Window management is a core part of Android. It manages the creation and destruction of windows, layout and size, control of focus, and so on.
Windows can be divided into two categories:
One is the application window, which is a window created by
1. Background
The previous article on the source of the capture of the Android phone screen function (while pressing the power button and volume reduction, details http://blog.csdn.net/buptgshengod/article/details/19911909), After a week of
Shared Preference stores a set of raw data NVP (Name-value pair) as a naming preference (named preference).
Create the Sharedpreferences class using Getsharedpreferences () and pass in the name you want to sharedpreferences;
Modifying the
It is believed that the Android practitioner who walks over the steps, everyone will encounter oom situation. How to avoid and prevent the emergence of oom, for each programmer is indeed an essential ability. Let's talk today about the management of
Custom controls are divided into two categories, custom ViewGroup controls, and custom view controls; The pace of tracking view can actually follow the Java implementation of the bottom of what we can find is only canvas, and then down is C + + or C
Categories:android
In the Android development, our commonly used layout way mainly has LinearLayout, relativelayout, Framelayout and so on, through these layouts we can realize various interfaces. At the same time, how to use these layouts to
It is painful that Android cannot generate r files, even if there are times when you have no errors in the XML file. To solve this problem, I summarize the following reasons.
One. XML itself has errors
R.java This file is automatically generated,
This program realizes using DOM method to parse XML file from network side, display in list, and realize click to enter related page.
First we create a class that implements HTTP requests and the acquisition of XML file nodes, where the HTTP
The Sharedpreferences object allows you to save some "key value pairs" types of data, such as user ID, birthday, gender, ID number, and so on. However, there are times when you need to use a traditional file system to save data. For example, you may
Listframgent is a fragment containing ListView that displays a range of information through a data source (array or cursor). Listfragment is very useful, like RSS, may display a list on the left, the right to display the selected list of the
As you can see from the previous lessons, ListView is used to display a long list of information while filling the entire screen (listactivity). But sometimes, you might want to have other similar views, so you don't have to fill up the entire
Today, summarize the list controls in Android: ListView and Spinner.
ListView can display some information vertically and in a sliding way. The following explains how to display a series of information using ListView.
1. Create a project:
For now, we've seen that there are two ways to adapt to changes in the direction of the screen. Now, let's look at the following changes in the activity State as the screen direction changes.
1. Create a project: Orientations.
2. Main.xml
The Framelayout is a "locator" on the screen that you can use to display a single view. Views that are added to the Framelayout view are always fixed in the upper-left corner of the layout. Consider the following code:
Here, a
Typically, an activity may contain one or more fragment that work together to form a coherent UI interface. In this case, the communication between multiple fragments appears to be very important. For example, an activity contains about two fragment,
In the previous article, I worked with you to implement the group navigation and extrusion animation features similar to the Android contact, but since the article is called the Android contact Full effect implementation, there is no quick scrolling
The main content of this article from Android Doc, I translated and done some processing, English good friends can also directly read the original.
Http://developer.android.com/training/displaying-bitmaps/index.html
Load large pictures
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