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
OriginallySource codeAs follows:
List model; // a custom list data that stores the custom lunchlistadapter; // a custom listview adapter ...... // class onsavereimplements onclicklistener {// listener for button save is omitted. After clicking it,
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
Ubuntu Android Development Environment
Install Ubuntu
Android Application
Program The development environment requires the following software Java Development Kits: JDK 1.5/1.6 development integration environment
When developing Android mobile clients, multithreading is often used for operations. We usually place time-consuming operations in separate threads for execution, avoid occupying the main thread and bring a poor user experience. However, the main
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(
1.2.2.2 system information
InAndroidTo obtain system information, you can call the provided method system. getproperty (propertystr), and system information such as the user root directory (user. home) and so on can be obtained through this method,
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,
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
Question: Previous Android chat
It is a game that can be used only when servers are used together. If you want to become a public player, it will naturally be a battle for Android games .. because this is the first android game, even if you know how
Sharedpreferences is a lightweight data storage method. It stores key-value pair data based on XML files and is usually used to store some simple configuration information. Its storage location is in the/data//shared_prefs directory. The
In actual application development, we sometimes need to set the activity to full screen display. Generally, you can set the full screen display effect in two ways. First, you can set it in the Code. Second, you can set full screen through the
The results of expandablelistview are displayed on the internet today. I feel quite helpful. I will use other people's examples.
Main file. Java
Import Java. util. arraylist; import Java. util. list; import android. app. expandablelistactivity;
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
1. Architecture
2. Data Structure
3. Four major functions
In this paper, G-sensor is used as an example to explore the android hierarchy.
1. Architecture
The architecture of android can be divided into four layers.
The first layer is the
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
During development, we often need to set our applications to full screen or do not want title,
Here there are two methods, one is to set in the Code, the other is to change in the configuration file:
1. Set in the Code:
Package Jason. tutor; import
First, we will show you what viewpager looks like. If you have used the Sina Weibo client, you should be familiar with the following pictures. (The pictures are not very beautiful, but they mainly mean that, let's take a look ....) the area below
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