See the following figure in the linux directory:
Next we will introduce the general functions of the level-1 directory:
Bin: This directory is mainly used to download the android code execution file.
Bionic: The libc library of Android
Next, we will analyze the function to_565_rle. This function is mainly used to convert the 24-bit color to the 16-bit Color Representation of 565, and compress the encoding of the stroke. The Code is as follows:
Void to_565_rle (void)
{
Unsigned
// ================================================ ====================================// TITLE:// How to build a Windows Android C ++ Development Environment (1)// AUTHOR:// Norains// DATE:// Thursday 14-rjl-2011// Environment:// Cygwin 1.7.9//
The Android mobile phone operating system is flexible and simple, and is favored by programmers. In particular, its open source code allows us to easily obtain the functional requirements we want. Today, we have brought you some Android Image
Today, when reading the source code, we found that one android Project A is A sub-project of another android Project B, and class and method in B can be used. I have never tried it. below is my practice record.
1. Create A sub-project named
Start with some questions about Android:1. After exiting all the activities, the application is still running in the background. Why can't I really exit the application?2. It seems that the thread can also complete the service function. Why cannot
When using Timer in Android, you need to access TimerTask, Handle, and other classes at the same time. The procedures are complicated and the things you really want to do are drowned in the procedural code. This document introduces the SaftyTimer
1. Start the Android init process
Start with Linux. Linux is loaded into the memory by bootloader and starts to run. After the Linux runtime environment is initialized, Mount ramdisk. img root file system image, run the init program, which is also
In this example, a ListView and a TextView are used to implement a notebook-like function. Input in TextView and display it in ListView. ArrayAdapter is used for string storage and ArrayList is used.
[Java]Private ArrayAdapter mAdapter; Private
The work of Injector is to construct the Object Graph. When you call getInstance to construct an Object of a certain type, Injector will automatically create instances of the required classes based on the dependencies between classes.The method for
Installing the JDKThe Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK shoshould be used.
Java 6: for Gingerbread and newer
$ Sudo
Because the application using Renderscript still runs inside the Android Virtual Machine (VM), you can access all the framework APIs you are familiar with, but you can also use Renderscript at the right time. To promote the interaction between the
Currently, we have seen two ways to adapt to changes in the screen direction. Now let's take a look at the changes in the Activity status when the screen direction changes.
1. Create a project: Orientations.
2. main. xml file.
[Html]Android:
In addition to fragments, newly added features in Android3 and 4, as well as ActionBar (activity bar ). The ActionBar is located at the top of the traditional title bar. The ActionBar displays the application icon and Activity title. Optional, the
1. Use the setAnimation of the View to implement animation (TextView, ImageView, ListView, and so on)
Java code:[Java]Public void UpdateViewContent (){TextView txtview = (TextView) findViewById (R. id. content_view );Txtview. setText (MyGetNextText (
This example describes how to use setColumnCollapsed to display or hide a column in a table: Void setColumnCollapsed (int columnIndex, boolean isCollapsed) ColumnIndex: column number, starting from 0IsCollapsed: true: This column is hidden. false:
A common application scenario:
On the loginactivity login page, click login and send it to the background service CmdSocketService to process the login service,
And get the login status (feedback on successful failures)
LoginActivity uses the
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