In versions earlier than 2.1, there is only one drawable. In version 2.1, there are three types: drawable-mdpi, drawable-ldpi, and drawable-hdpi. These three types are mainly used to support multi-resolution.
Differences between drawable-hdpi,
Friends who develop Android applications sometimes encounter such bugs ,,
Android. content. res. resources $ notfoundexception: string resource ID #0x0 cannot find the resource file ID #0x0
Cause analysis:
In this case, it is very likely that the
Android often has this problem during the eclipse import project. Many statements about the @ override mark error are as follows:
"Eclipse uses Java 1.5 for compilation by default when no settings are made.Code, So this problem often occurs.
This article is original. If you need to reprint it, please indicate the author and the source. Thank you!
I am working onProgram, You need to dynamically expand each list item in the listview. You can set the Android: visibility attribute of some
In AndroidProgramIn addition, you can also start the program from the command line, using the command line tool AM.
The start method is
Wangwei @ wwg41d3 :~ $ ADB Shell$ Su
# Am start-N {package name}/{package name}. {activity name}
The
1. Overview
Past,ProgramUsers usually design the computer user interface in pixels. For example, the image size is 80x32 pixels. The problem with this processing is that if you run the program on a new display with a dot (DPI) higher per inch, the
Android is based on Java, and Java decompilation tools are powerful, so it applies to normal APK applications.ProgramIt can basically achieve 100% decompilation and restoration.
Therefore, if developers do not prepare their own open-source
In Android, ifProgramWhen you do not need to perform any operations, you can use the lightweight message toast provided by Android.
Text prompt.
With ImageMessage prompt
Use
A toast instance.
Public
Class Toasttest
Extends Activity
{
I. Relationship between activity and task (stack)Task is like a container, and activity is equivalent to filling in the container. The first thing (activity) will be at the bottom, and the last added thing (activity) it will be at the lowest end.
The two parameters have the same meaning.
What type is match_parent?
In fact, from Android 2.2, fill_parent is renamed as match_parent.The API level is 8.In the beginning, we can directly use match_parent to replace fill_parent. In essence,
The listener that receives text messages will always be in the background, even if
Program The listener will always exist and activate the main program when receiving the message. In general design, this is not the case because it is a waste of
The sharedpreferences provided by Android is similar to WindowsProgramCommon INI files are saved in the form of key-value (data type differentiation ). For example, it can be used to save the user's last login information, the volume setting of the
Android 3.0 and later versions support two animation modes: tween animation and Frame Animation. In android3.0, a new animation system is introduced: Property animation, these three animation modes are called property animation, view animation, and
Each attribute has a name and value, which are in string format. Attributes are widely used in Android systems to record system settings or information exchange between processes. Properties are globally visible throughout the system. Each process
I 've talked about the knowledge and technology of Android development. Many may be confused (or even eager to know. Because many of my friends want to make a fortune, and I'm a little excited.) ---- how should I pack and release my own apps, how
I. Handler definition:It mainly accepts data sent by sub-threads and uses this data with the master thread to update the UI.Explanation: When an applicationProgramAt startup, Android will first open a main thread (that is, the UI thread). The main
Document directory
Request Process
In the hardware/RIL directory, the ril driver module of Android is divided into three parts: rild, libril. so, and librefrence_ril.so, and radiooptions are available for automatic or manual debugging. All
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