Author: Sun Dongfeng 2010-01-07 (source must be noted for reprinting)
Recently, I need to transplant a j2-based project to the Android platform. So I took the time to study the interface specifications of the Android platform.
In addition to
The parse_config_file function analyzes the *. rc configuration file and forms the parameters in it into a linked list. The following code is analyzed carefully:
#001 int parse_config_file (const char * fn)
#002 {
The input parameter is the path of
Learn the statusbar source code in android, found that the power icon using the label of the stat-sys-battery.xml.
Use in code
V. setImageResource (R. drawable. stat-sys-battery );V. setImageLevel (levle );Different Icons can be set with different
Q: "How to call WebService on the Android platform "? After communication, I found that some friends even asked how to use WebSerivce, not to mention the "Mars" terms such as SOAP and WSDL related to WebService. Therefore, before explaining how the
In Custom Dialog, the Theme of an Activity can be defined as a Dialog style, which makes the Activity look like a Dialog box (Dialog). Custome Title indicates that a Custom Title bar is defined. The Dialog example uses the Dialog style to display
For Android SDK, no resource defined in the res directory will define a dimension 1 Resource ID. During compilation, R. java is generated under the gen directory. The resource ID format is R. [type]. [id]. The resource type is resource type, such as
Styled Text introduces that Android Text supports HTML format. In this example, two methods are used to display the same string:
Plain, bold , italic , bold-italic
One is directly defined in R. layout. styled_text:
Android: layout_width =
How do I traverse and draw a View tree? In previous articles, the invalidate () function details (combined with the latest Android 4.0.4 source code) mentioned in invalidate () will finally initiate a View tree traversal request and execute
Today, I learned how to refresh the android VIEW. Previously, I thought that I would call the refresh function when calling the refresh of the VIEW. Today I learned about the refresh mechanism of the view, but I learned a lot.
I think that I want
The PC must be a linux system (preferably 64-bit ubuntu10.04)1. Install the Java 6 EnvironmentDownload Java 6Terminal input: sudo apt-get install sun-java6-jdkIf the following error occurs:Reading package lists... DoneBuilding dependency treeReading
Process AUDIO_BECOMING_NOISYIntentMany good audio playback applications will automatically stop playing when an event that causes the sound to change to noise (output through an external speaker) occurs. for example, this may happen when a user
HierarchyViewer is a very useful tool in the Android SDK package. You can find it in the android-sdks/tools directory. Through HierarchyViewer, even if there is no source code for the application, we can intuitively browse the hierarchical structure
1. Create a. aidl File
AIDL uses simple syntax to declare interfaces with multiple methods. These methods can contain parameters and return values. Parameters and return values can be of any type, or even interfaces generated by other AIDL.
The.
26. If the background Activity is recycled by the system for some reason, How can I save the current status before being recycled by the system?When one Activity A in your program is running, it actively or passively runs another Activity BAt this
1. What is Bluetooth )?
1.1 BuleTooth is the most widely used wireless communication protocol.
1.2 mainly for short-range device communication (10 m)
1.3 is usually used to connect headphones, mouse, and mobile communication devices.
2.
1 Intent intent = new Intent (Intent. ACTION_SEND); // start sharing and send to attributes
2 intent. setType ("text/plain"); // share the data type sent
3 intent. putExtra (Intent. EXTRA_SUBJECT, "subject"); // share the topic
4 intent. putExtra
Previous: http://www.bkjia.com/kf/201208/148369.htmlImageView can display an image, which supports reading images (such as resource files or Content providers) from multiple data sources and managing the image size to adapt to different Layout
When describing the relationship between Android applications and the SurfaceFlinger service, we mentioned that every Android application with a UI needs to establish a connection with the SurfaceFlinger service, this connection allows you to
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