1. Start the simulator (my source code is SDK 2.1)
Emulator-AVD sdk_2_1
2. Modify and compile modules
In the source code, write the log where you need to verify and save
First go to the source packageMmm packages/apps/launcher if the prompt does
When playing music on a mobile phone, we want to listen to the phone status. Of course, there is no phone function on the mid, and no listening is required.
As follows:CodeIt is the status of the phone number to listen to. You can directly
The following example shows API = 11, so it is out of scope for discussion.
Today, Google released the latest API 18, including a large number of new performances. It was just recently studying actionbarsherlock. Seeing that the latest support V7
Binder ipc api DefinitionNew include/Linux/logger. h logger DefinitionsNew include/Linux/switch. h gpio switch interfaceChg mm/makefile compile ashmem. O Based on Kernel configNew mm/ashmem. c anonymous shared memory implementationChg
Edittext hyper‑ittext = (edittext) findviewbyid (R. Id. hyper_link_edittext); // edittext object
Int Index =Hyperledittext. Getselectionstart (); // obtain the cursor position
String text = "I want to input Str"; // The string I want to add
(Method 1
Put a file to the/cache partition by yourself. After restarting, the file disappears. How does it disappear?
Step 1.
Packages \ providers \ downloadprovider \ SRC \ com \ Android \ providers \ downloads \ storagemanager. Java:
/** *
Article Source: http://blog.csdn.net/dany1202/archive/2011/01/26/6164450.aspx
1. Start camera1. An activity starts the call process:Oncreate () --> onstart () --> onresume ()Oncreate ():1. You can add the layout file and draw the interface.2.
The style of the label bar at the bottom of the iPhone is now popular on the Internet. How can this be achieved in Android? I have seen several articles on the Internet, one of which is of reference value, but the method is not too simple. Because
For those without Android Developers, most of them add feature bugs to the framework that the company has set up. I used to learn about Android without the hierarchyviewer tool. I saw my colleagues use this tool, later, I used it to feel like this
For many games that use screen control, you generally need to consider the long-press event. For example, in a gossip game, you need to use the long-press launch weapon. In combination with the android button model, we implement a long-press of a
Print I, W, and E options:
I/activitymanager (62): Starting: intent {CMP = com. Moming. Marten/. systemplayeractivity (has extras)} from PID 415
W/drawable (415): Bad element under : Background
I/stagefrightplayer (34): setdatasource ('/mnt/sdcard/
In the android project, if an HTTP request is used, the timeout management and exception management of the HTTP request must also be added. In this case, a lot of requests are found on Google, however, it is relatively simple to write, and it is
Collection of Android website resources (constantly updating)
Android Developer ForumHttp://www.androidin.com/
Google main site:Http://code.google.com/android/
E DocumentHttp://code.google.com/android/documentation.html
Android Chinese developer
LP Sense UI is a very good Android launcher with a high imitation of HTC Sense.
Recently, I downloaded the Chinese version on a website and liked it after installation. However, it is found that it is displayed in the drawer box compared to
Custom View
Although the android framework provides a lot of interaction with users and can display views of various data, sometimes the basic view controls built in Android cannot meet some special requirements, in this case, we need to customize
Release is 9.png:All the functions that can be used to perform the job. However, the framework-res.apk \ res \ drawable-hdpi directory contains many xxxxxx.9.png images.
Do not think that this 9 is only a distinction between the names of PNG images.
After upgrading the android SDK In SDK manager.exe, you will find that the cute robot icon of the simulator on the original taskbar is missing, and the image displayed when the icon is missing in a Windows application.
1. In the "C: \ Users \
Those who have used Android, especially the cottage pad, should be impressed with the restart of Android. Due to the complexity of its design, Android may cause the system to go into an abnormal state inadvertently. Therefore, Android designs a set
From http://hi.baidu.com/aokikyon/blog/item/2e8ca6130db328906438db18.html
1. Introduction to PixelflingerPixelflinger is a set of software renderer (renderer) provided for the OpenGL ES engine in the Android system ). When the system starts, you
First, let's take a look at the main usage of Android phones:
Obviously, most of the electricity is consumed by network connections, GPS, and sensors.In short, it consumes a lot of power in the following situations:1. Transmission of large data
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