Ndk is the meaning of Native Development Kit, which is easy to understand and developed locally. Most people know that the android development language is Java. At the same time, we also know that android is based on Linux, and many of its core
1. Use the real analogy interface. Assume that there is a hashmap object, which can be declared as hashmap or map: Map mymap1 = new hashmap (); hashmap mymap2 = new hashmap (); which one is better? In the traditional view, map is better, because you
I. error level
Error> warn> info> debug> verbose (redundancy)
Ii. View Android project logs
The console view can only view the information of the Project deployed on the simulator. The development log information can only be found
1. Functions of handler in Android
See how the SDK introduces it:
A handler allows you to send and process the message and thread's messagequeue runnable object. Each handler instance is related to a separate thread and the message queue of the
When you create an android project, the tool automatically creates many folders, the following explains the functions of these folders: src/Java original code storage directory GEN/Automatic Generation directory Gen directory stores all files
Save activity status
As described in the previous section, the system saves its status when the activity is stopped by default. as a result, when a user navigating to the previous activity, the user interface is displayed the same as when the user
Thread Security
In some cases, the methods you implement may be called in different threads, so they must be implemented as "thread-safe ".
This is first reflected in methods that can be called remotely-for example, methods in boundservice. When a
Android provides a custom 2D graphics library to draw images and images. In the Android. Graphics. drawable package, you can find these generic classes for 2D painting.
This article discusses the basic knowledge of using a drawable object for
Learning the basics of the android user interface
Author: Zheng Meng and Hua Qing vision embedded trainingLecturer.
In the previous study, we mainly learned about the process priority sorting of the Android system, the change methods between
It wasn't long before you started to learn Android. you may understand it and write it down as a note here.
It is too simple to create only one button. You always want to use it to communicate with people, so you need to set a listener.
There are
1. user space display interface
On the Android platform, the interface for displaying the application is Hal. For details, refer to copybit. C. The specific interface is as follows:
Open_copybit
Initialize related variables and call open
Abstract:
Log. I is available at the Java application layer, and Logi and logv are available at the local layer to print debugging information:
Therefore, JNI also has proprietary printing functions. The following describes how to use the log
Original post address: http://tq09931.iteye.com/blog/1011895
After a day of hard work today, we have some gains. We successfully used JNI to call a method in libffmpeg ----- avcodec_version (). I don't know what avcodec_version () is, it should be
Tian haili
2012-04-03
From the perspective of audio control, this article explains the classification of audiostream, the impact of the hardware volume control key adjustment on the volume of the corresponding audiostream, and how to respond to the
From: http://www.eoeandroid.com/blog-493288-3123.html
Q: I need to use the same code in multiple Android projects and the Code contains resource files. What should I do?
Of course, you will think of creating a jar!
However, when the resources file
From: http://www.cnblogs.com/kchen/archive/2011/08/02/How_To_Inprove_Android_UI_Performance.html
Statement
You are welcome to repost, but please keep the original source of the article :)
Blog: http://www.cnblogs.com
Kchen:
Visit: http://m.renren.com
White edge effect: You can see it carefully. Of course, you can set a red background color for the following webview, which is more obvious.
Webview mwebview = (webview) This. findviewbyid (R. Id. webview
Preface:
For a long time, I have been thinking about when to develop an app Based on Web apps developed by native HTML5. Finally, I made an application called Libo parenting encyclopedia, I tried this method to create an app;
Author of this article:
The android interface consists of activities.
When you create a new Android interface, an activity is automatically created. Activity can be understood as a form. Put some controls on it to form a general program.
If you want to place controls
Description:
How do I check whether the Background Service (Android service class) is running? I want my activity to display the service status, and then I can open or close it.
Answer:
The Android system provides the activitymanager.
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