Google opened the Android source code. The source code uses Git for version control.
1. First, goHttp://code.google.com/p/msysgit/downloads/listDownload git-xxx.exe and install Git after the download is complete.
2. Address of the Android code
Data storage and access
Most of the time, our software needs to store or re-access the processed data.
Android provides multiple data storage methods, including the following:
File
SharedPreferences
SQLite Database
Content provider)
Network
Use
Android will call android when exiting the application. OS. process. killProcess (android. OS. process. myPid () or System. exit (0), which is only effective for the first Activity (that is, the Activity of the entry. If there are three activities A,
When customizing views or playing games, we often use keyboard-triggered events and screen-triggered events! Keyboard-triggered events (such as onKeyDown (int keyCode, KeyEvent event) and screen-triggered events (onTouchEvent) in a custom View ))
Ii. Create a style
The table line displayed in the calendar is implemented by filling the border of the graph with Cell. To ensure uniformity, we first define the color and line of the border line.
In addition, you must define a system fill
I believe many of my friends have used this music player on Android phones. I wonder if you have noticed that every day there is a special effect on Mini lyrics. What is the effect? The lyrics are always displayed and can be dragged. Type QQ music,
WindowManager. LayoutParams is a nested class of the WindowManager interface. It inherits from ViewGroup. LayoutParams and is used to describe Window management policies to WindowManager.Major member ConstantsWindow flag SeriesThis series is mainly
Sensor Coordinate System
Generally, the sensor framework uses a standard 3-axis coordinate system to express data values. For most sensors, the coordinate system is defined relative to the screen of the device when the device is kept in the default
The result is as follows: I think you have already seen it in many applications. Next let's take a look at how to achieve the sliding drawer effect using SlidingDrawer.
Android. widget. SlidingDrawer class has been added since Android1.5.
Some
Now we can use the tool chain provided by Android NDK in the form of an independent compiler! This is useful if you already have your own build system. A typical application scenario is to call a 'configure 'script dependent on the CC environment
The Android terminal continuously scans AP information and sends it to the server. First, a virtual network link is formed between the Android terminal and the PC based on the TCP protocol. Use ServerSocket to create a TCP server, and then use the
In the Android system, the code for displaying the number of signal strength cells in the mobile phone is
Frameworks \ base \ telephony \ java \ android \ telephony \ SignalStrength. java
GetLevel () function, which is mainly used to obtain the
Due to my limited English skills, please understand at the beginning
This blog is original as long as it does not indicate "Conversion". For the post, please indicate the link to this blog.
Processing Bitmaps Off the UI Thread
Processing Bitmap
Recently, the project was completed and a code sharing was conducted. One of the students shared some of their experiences in solving the problem. Sort it out and share it with you.We recommend that you use your own android OS and virtual machine to
CMOS CameraPurpose:Display the data collected by the camera on the LCD in real timeI. 2440 Environment Construction1. patch:Tar xjvf linux-3.4.2.tar.bz2Cd linux-3.4.2Patch-p1 Cp config_ OK./. configMake menuconfig2. Start the kernel:Set ipaddr 192.16
For more information about how to create a configuration, see the preceding section.
If (! CCDirector: sharedDirector ()-> getOpenGLView () {CCEGLView * view = & CCEGLView: Export dopenglview (); view-> setFrameSize (w, h ); // set the design
Because it is personal developers rather than team development. In the development process, there are no such specifications, no detailed requirements, no interface design, and no detailed development plan. Therefore, the development of an
1. UriThe Universal Resource Identifier ("URI ").Uri indicates the data to be operated. Each type of resource available on Android-images and video clips can be represented by Uri. A URI consists of three parts:The naming mechanism for accessing
Linkify provides a helper class for TextView and its subclass to automatically convert text strings into hyperlinks. Of course, text strings must comply with predefined or custom regular expressions.
After a text string that complies with the
1. Open/closed (OCP)
Introduction: to scale, do not modify it. For example, I provide an external interface. If you want to update the API, do not modify it directly. Instead, provide another API and notify you when to switch to the new API.
For
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