This time we will introduce the Tab control of Android. The Tab control can achieve the paging effect, so that the content of a screen can be as rich as possible. Of course, it will also increase the complexity of development, use it again when
The last time we introduced the use of Activity and Intent, this time we will introduce Service. If Activity is compared to a foreground program, Service is a background program, and the entire life cycle of Service is only executed in the
The last time I explained the basic usage of Android Bluetooth, I went into depth and discussed the hidden APIs of Bluetooth. Anyone who has used Android settings (Setting) knows that pairing and unpairing can be established after Bluetooth search,
Last time I introduced how to use the reflection mechanism of JAVA to call the hidden APIs of Bluetooth. This time I continued to practice the reflection mechanism of JAVA and explored several functions that TelephonyManager contains in the
Analysis of the insert () method in android SqLite Android provides a class named SQLiteDatabase, which encapsulates APIs for database operations. This class can be used to Create, query, and Update data) and Delete operations (CRUD ). For
In this example, the focus is on how to use SensorManager. SENSOR_ACCELEROMETER to determine the device's moving direction: the result is displayed in Log mode rather than in graphics mode, so the arrow displayed in this example is always up.
This
This is an example of a custom library.
Usage and precautions:
1. Place the voice library Aisound. so in:
Libs \ armeabi \ libAisound. so.
Note: The libraries in the armeabi directory must be prefixed with lib to facilitate calling.
2. resource.
Based on a copy of the code (http://code.google.com/p/android-ilbc/) of the google site mentioned in the previous article, this requires git download, I uploaded a copy in CSDN,Slightly modified: Download link :(
As a flat application, the back home at the bottom and the status bar of the battery WIFI cannot be set to full screen. Later, I found a better method.
Add a line of statement in OnCreate before setContentView:
GetWindow (). getDecorView ().
Performance Improvement
There are two basic rules for writing valid code:
1: Don't Do What You Don't Need To Do.2: do not allocate unnecessary memory. Avoid creating unnecessary objects, such:
1: When extracting strings from a group of input data,
In Android, Animation is everywhere. Different activities are switched and different views are switched. The list is displayed and all tables can be animated. Android ApiDemos (3): App-> Activity-> Animation: This section describes the fade-in and
The telephone recording service only performs internal recording and calls the PhoneManager object. In many cases, the service needs to communicate with other programs after processing the business .. StartService () and stopService () are
BUTTON class structure:
From the class structure diagram, we can see that the Button is inherited from TextView, so some attributes of TextView also apply to the Button control.
ImageButton class structure:
ImageButton uses an icon to represent
In this example. screen Top, 2. screen Bottom, 3. scroll introduces the usage of AutoCompleteTextView. The difference is that the Layout position in AutoCompleteTextView is different. You can see that the AutoCompleteTextView automatically selects a
I wrote an article about photo upload some time ago, but later I found that the images uploaded in that way were processed by the android system, not the original image, that is, compressed images, the image will become very small. Today I am trying
Andling affinitiesProcessing affinity
The affinity indicates which task an activity prefers to belong.By default, all the activities from the same application have an affinity for each other.So, by default, all activities in the same application
We all know that the height of the control obtained in onCreate () is 0. Why? Let's take a look at the example:First, we can write a control, which is very simple:[Java]Public class MyImageView extends ImageView { Public MyImageView (Context context,
Transparent images and irregular images are often used in projects, especially when playing games. Special processing is required for click events in the transparent area of images.The one-stop FIFO card file transparent.png is transparent to 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