It seems that there are not many development materials on opengles for Android. I have seen a foreigner write on a foreign website. It is very well written and clear,
I will share with you the following six parts:
1. settingup view:
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
Customize the titlebar layout of the android title bar
Many users find that their androidProgramThe titlebar area of the title bar is monotonous. If you want to personalize the title bar, you can use the following method for the title of your
Sometimes we work hard to get AndroidSource code, Want to know its exact version number. For example, sometimes we only roughly know the source code of 2.3, but it is not clear that its minor version number is sometimes 2.3.CodeThere are still
The ANR window is generated for a variety of reasons.ProgramThe main thread is blocked because of Io read/write or network congestion, external storage devices are monopolized, or the system load is too high (that is, it is not a problem of
Android Application
I. Overview
The frameworks used earlier: VC-based MFC and MTK platform development; the similarities between the two platforms are: Application-based development;
MFC is an application-based document/view method, and each
The animation effect is written in XML,
In the onclicklistener of the button
@ Override public void onclick (view v) {animation hang_fall = animationutils. loadanimation (curriculum. this, R. anim. hang_fall); V. startanimation (hang_fall);
In fact, the reuse technology here is very common in the list, tableview in the iPhone also has related technologies, cell Reuse
Working principle:
For each item in the list, listview requires the adapter to "give me a view" (getview ).
There are a lot of online tutorials, mainly to talk about the situation I encountered. At first I downloaded eclipse 4.2.1, adt00000.3, and jdk6 myself, but during the ADT installation process, errors are often reported, but the specific errors are
Toast is often used in actual use, and it is extremely invincible and convenient to use.CodeYou can do it.
Toast. maketext (This, "Content to be displayed", Toast. length_short). Show ();
If you only use this code, you will
During the backup and restoration of text messages on Android, the short message recovery idea was initially considered very simple. The circular parsing file called the insert method of smsprovider to insert the short message into the database
Void Android. View. View. settag (Object Tag)
Public void
Settag
(Object Tag) Since: API Level 1
Sets the tag associated with this view. A tag can be used to mark a view in its hierarchy and does not have to be unique within the hierarchy.
Android provides JSON parsing, but its jsonreader SDK is available after 3.0.
Its resolution method can refer to the http://developer.android.com/reference/android/util/JsonReader.html
For earlier versions, we can use some additional
Android learns key event monitoring and command mode
1. Command mode
Intent:
Encapsulate a request as an object so that you can parameterize the customer with different requests;
Queue or record request logs for requests and support
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
GUIer should be curious about how to implement the Android GUI. It must have been searched. For example, it is easy to find TextView first, draw interface, onDraw interface, paint interface, and onPaint interface. Through these interfaces, we can
In the previous article, the connection between Linux kernel startup and android startup is that the Linux kernel executes the android init process at the end of startup according to the Conventions. The main task of the init process is to parse
Understanding and Application of Adapter and Bridge modes in Android
One Adapter Mode
Intent:
Converts an interface of a class to another interface that the customer wants.
The Adapter mode allows the classes that cannot work together due to the
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