1. How to print the call stack at the Java layer?
When optimizing the android startup process, colleagues provided a function to print the call stack. Share
Java. util. Map TS = thread. getallstacktraces ();Stacktraceelement [] ste = ts. Get
Http://www.cnblogs.com/super119/archive/2011/08/31/2160942.html
Find a method to save the log, so that you can see the log if the mobile phone is not connected to the USB cable, and a simple experiment is feasible.
1. Connect to USB2. Run the ADB
Sometimes you want to make a view appear on another view, you can do this:
You can't use a linearlayout for this, but you can useFramelayout. InFramelayout, The Z-index is defined by the order in which the items are added, for example:
1. Commonly Used units: the relative units are PX, SP, and DP.
Absolute unit: PT, In, mm
Ii. Unit Application Summary: Generally, relative units are used instead of absolute units.
1. the font size is generally sp. The font in this unit can be
Install android in eclipse
Download development resources
1. download the latest Android SDK
Http: // CODe.google.com/android/download.html
Select the Windows SDK and decompress it to use it. In order to directly use the SDK tool in the console,
When you understand and use Android cursor, you must first know several things about cursor:
Cursor is a set of rows.
Use movetofirst () to locate the first line.
You must know the name of each column.
You must know the Data Type of each column.
1. interesting properties in the Control Configuration XML:Android: BackgroundYou can set the background to transparent in either of the following ways: "@ Android: color/transparent" and "@ null ". Note that textview is transparent by default. You
Today, I saw someone using buildconfig. Debug on the Internet. Later I checked that buildconfig was automatically generated under the gen directory. In addition, the default value of buildconfig. debug is true, indicating that it is automatically
Reprinted from: http://www.cnblogs.com/hangxin1940/archive/2011/10/22/2221451.html
On the third day, Google said that the Garden of Eden (the Linux World) was isolated, so Adam (ADM) and Eve (Eve) were created, called zygote and system_server.
--
Follow the android documentation to add such udev rules:
Subsystem = "USB", ATTR {idvendor} = "0bb4", mode = "0666", group = "plugdev"
Note that when the ADB cannot find the Android device, check whether the idvendor string is in lowercase. For
Http://www.cnblogs.com/super119/archive/2011/09/01/2161896.html
Android 2.3 comes with an executable program named stagefright, which is executed on the board.
Stagefright-l
All OMX components are displayed. OMX. PV comes with Android and is
Note: MAT (memory analyzer tool) is a memory usage analysis tool recommended by Google. It has comprehensive and powerful functions !!!
First, let's take a look at the functions of dumpsys:Dumpsys is used to give information about all applications
Http://hi.baidu.com/kenny_wju/item/042603c7f4f66d78ced4f83b
Recently transplanted the tslib Library to the Android system, it is strange to find that the compiled library and test tool are not input to out/target/product/ok6410/system/lib and
1. Demo description and demonstration
This demo demonstrates how to use startactivityforresult to get a returned result from the started activity. The main lessons learned are as follows:
Startactivityforresult
Functions of Request Code and
1. Main Content
This section describes how to build a simple user interface, including an input box and a button. The attribute values of each view are described in detail.2. Video descriptionHttp://www.eyeandroid.com/thread-10716-1-1.html
3.
In the past few days, the development process involves a program that dynamically refreshes the UI. The refreshing process is executed by opening up a new thread, however, the results were not tested during the operation. After tracing and debugging
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