Similar effects:
Import pinyin4j-2.5.0.jar, there is a way to convert Chinese characters into pinyin, so after obtaining the address book contact, the contact display_name into pinyin, the above layout is actually two layout, the layout is
After using the database to query data, if it is processed in the activity, it is likely that the startmanagingcursor () method will be used. Here we will talk about its role and usage considerations.
By calling this method, the obtained cursor
If an intent request executes an action on a piece of data, how does Android know which application
Program (And components) can be used to respond to this request? Intent filter is used to register activity, service, and broadcast referers to
There are two sets of methods to update the view in Android: invalidate and postinvalidate. The former is used in the UI thread itself, the latter is used in non-UI threads.
View re-painting-the system does not often call the ondraw function of the
After studying Android's asynchronous loading of images from the network, the following is a summary:
(1) Because Android UI updates support the single thread principle, data is retrieved from the network and updated to the interface. In order not
To draw a bitmap to a view, you must use the Android. Graphics. Canvas and Android. Graphics. Bitmap classes. The method is very simple. In the view, reload the ondraw (canvascanvas) method, and then draw it on the screen using the canvas.
Reference: http://www.iteye.com/topic/710262
In the previous blog, we introduced how to draw bitmap to the screen and scale bitmap to fill the screen. There are still many operations on bitmap. For example, you can use
mBitmap = Bitmap.createBitmap(
Monkey Tool
Preface:
Recently, I started to study Android automated testing methods, and made some simple arrangements for some of the tools, methods, and frameworks, this includes the android testing framework, CTS, monkey, monkeyrunner, benchmark,
How Android finds the best-matching resource
Example: There are some resource files: drawable/
Drawable-en/
Drawable-fr-RCA/
Drawable-en-Port/
Drawable-en-notouch-12key/
Drawable-Port-ldpi/
Drawable-port-notouch-12key/
And assume the following is
Public abstract class intentservice extends Service1. start and end of intentserviceSince it inherits from the service, first consider the start and end of the service. You can start a service in either of the following ways: startservice () and
1. Change location:/home/PYou/mx0831-0525/device/other/tbg1073 directory
2nd, replace robot.1024x600.png with the image name that you want to set. There are other images in the directory that do not have resolution. You can change the image as
1. Find ~ /Mx0831-0525/frameworks/base/packages/settingsprovider/RES/values/defaults. xml file
2. Modify the default sleep time
3. recompile
4. the above method has no effect after compilation. It was originally replaced by
This article briefly analyzes how build. Prop is generated. Android build. the prop file is a variety of properties (LCD density/Language/Compilation Time, etc.) collected during Android compilation .), after compilation, the file is generated in
First, let's analyze the source code:
Frameworks/base/cmds/bootanimation. cpp
First, let's take a look at the defined constants:
Bootanimation: readytorun ()
Enter an if judgment statement
Bootanimation: threadloop ()
==> Bootanimation: Android ()
I. concept:Android is an open-source smartphone operating system based on the Linux platform. The system consists of the underlying Linux operating system, middleware and core applications. Android applications are written in powerful Java languages
The layout file is as follows. The Android: layout_toleftof = "@ ID/voice_max" in seekbar always reports an error. I almost vomited blood, but it is clear that there is no error.
Later, I tried to modify it, as shown below:
The
Let's take a look at a passage on Application Fundamentals:
Android callonsaveinstancestate () before the activity becomes vulnerable to being destroyed by the system, but does not bother calling it when the instance is actually being destroyed by
First, we make it clear that preference is related to data storage.
Second, it can help us easily store data! Why must we emphasize the word convenience? The reason is that we can not use it at all. We have n other ways to implement the same
The following are two reference articles!
Note: Let's clarify these two different lines. The lines on the left and top define which pixels of the image can be copied during scaling.The bottom line and the right line are used to define an image in a
The Android app of "public comments" is positioned as Google map. When you click a merchant's address, the system automatically calls Google map and displays the merchant's location, how is this done?
Intent intent = new intent (Android. content.
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