Author: du gang
In the software development process,ProgramCodeIs a very important concept. We always need to use some existing modules, packages, frameworks, or develop our own modules, packages, and frameworks to reuse program code. For example,
Reference: http://linux.chinaunix.net/techdoc/beginner/2009/02/06/1060906.shtml
Running Environment: ubuntu8.10
1. Build a cross-compilation environmentAndroid's default hardware processor is arm, so we need to build a cross-compilation
The Linux kernel of Android is stored in the kernel subdirectory. By comparing it with the standard Linux 2.6.25 kernel, we can find that it mainly adds the following content:
1. Add the gold-fish platform based on the ARM architecture. The
The application component (client) can bind a service by calling the bindservice () method. Then, the android system calls the onbind () callback method of the service, this method returns an ibinder object that interacts with the server.
This
Hal Introdution: the existence of Hal (hardware action layer) aims to make the android framework and Linux
Device driver is separated. Upper-layer applications use Dalvik Vm and core services [runtime] (such as sensor
Service, camera service, etc.)
To: http://www.cnblogs.com/baiyongquan/archive/2012/06/27/2566167.html
In the Android system, textview will wrap a line at the end of a line when there are numbers, letters, or punctuation marks. In fact, word will also wrap in advance, however,
Android supports Playing videos on the network. When playing a video on the network, it involves video stream transmission. there are usually two Protocols: HTTP and RTSP. This
The biggest difference between the two Protocols is that HTTP does not
Recently, when I was playing the 3G sports portal client, I saw the following effect: by clicking the event icon, there will be a larger icon ., very interesting. so I made a copy of it.
This is the source image:
In fact, a scaling animation is
1. Determine whether the network connection is available
Public static Boolean isnetworkavailable (context) {connectivitymanager CM = (connectivitymanager) context. getsystemservice (context. connectivity_service); If (Cm = NULL) {} else {// you can
Here, to determine whether to win or lose is to judge whether there are five pieces of the same color in four directions: horizontal, vertical, left-oblique, and right-oblique. The idea is to scan the two-dimensional array, check whether there are
11I want to add this article to my favorites one month ago (
), 147 reads, 0 comments in total
The dynamic loading technology of Android virtual machines is divided into two types: one is to load the so Library Based on ndk; the other is to load the
The previous section has implemented a simple app widget. Here we will continue to learn more about app widgets through an instance.
First, continue to understand the main classes of the app widget framework:
Appwidgetprovider: inherits from
Statement: some content is from the network.
The following describes the Chinese garbled characters of JNI in Android. When we create a new Native. C. Eclipse defaults to GBK for native. C. I tried to convert GBK into a UTF-8 in Java, still garbled,
Recently, I was looking at the source code in frameworks. I wanted to change it to see the effect. I didn't expect the simulator to run after the change.
First, we declare that I have successfully pushed Android 4.0.3 plugin and launcher. odex.
Now
Android support library for barcode scanning and Recognition
Android supports barcode scanning. However, if you do not have a real machine, you cannot understand whether this function is an application or an API call function. However, you can find
Recently, I helped a student develop a project and recorded some knowledge points intermittently. A webview exists in a page to play SWF. If the flash plug-in is not installed in the system, you must be prompted to install it in the market.
The
Playing music is controlled by mediaplayer. The progress bar of the progress bar can be used to display the playing progress. You can also use the slider of the seekbar to control playing music. One button is used to play the song start thread, the
This article from http://blog.csdn.net/hellogv/, reference must indicate the source!
To achieve a drawer effect similar to launch on Android, you must first think of slidingdrawer. Slidingdrawer is one of the official Android controls. The main
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