In Android, messages are often used during information interaction between threads or threads. If we are familiar with the Internal principles of these basic things, it will make it easy and better for us to build a system, avoid some low-level
Introduction
When using the Andriod SDK for application development, we need to debug the source code. It may need to go to an Android API function for tracking and debugging. However, if the SDK of the target version is not associated with the
By default, Android projects in Eclipse use Proguard (http://proguard.sourceforge.net/) to confuse project code files. The usage is simple:1. Add proguard. config = proguard. cfg to the default. properties file.2. Configure the proguard parameter in
Android provides a user-level lightweight LOG Mechanism. Its implementation runs through Java, JNI, local c/c ++ implementation, Linux kernel driver, and Other Android layers, it is simple and clear enough to explain the case. This series of
C/C ++ code
// Call the browser
Uri uri = Uri. parse ("");
Intent it = new Intent (Intent. ACTION_VIEW, uri );
StartActivity (it );
Copy to clipboard C/C ++ code
// Display a coordinate on the map
Uri uri = Uri. parse ("geo: 38.899533,-77.036
Save a media file
Media files such as images and videos created by users should be stored in the external storage directory (SD card) of the device to save system space, and allow users to access these files outside of the device. There are many
Background: when developing enterprise applications using android, it is found that the code structure developed in the traditional mode is relatively poor. The business logic processing and Activity are processed together, and the structure is
The advantages of the flight mode are:
1. You can have a quiet rest time
2. Reduce radiation to the body
3. Saving Power
4. Do not close the alarm
Therefore, it is very useful to set the flight mode.
The following is an example:
Set the required
1. Introduction to NKD
NDK (Native Development Kit) "Native" is binary
AndroidNDK is a set of tools that allow Android Application developers to embed local machine code compiled from C, C ++ source code files into their respective application
The result is as follows: I think you have already seen it in many applications. Next let's take a look at how to achieve the sliding drawer effect using SlidingDrawer.
Android. widget. SlidingDrawer class has been added since Android1.5.
Some
Bluetooth permission
To use the BLUETOOTH function in your application, you must declare at least one of two BLUETOOTH permissions (BLUETOOTH and th_admin.
To perform any BLUETOOTH communication (such as requesting a connection, receiving a
Write an Acitivity, as shown below:Key Aspect 1: block the HOME button and set FLAG_HOMEKEY_DISPATCHED in onAttachedToWindow.Key Aspect 2: shield the buttons except Power and Home, overwrite the dispatchKeyEvent method, and return true.Public class
WebView can load and display webpages as a browser. It uses the WebKit rendering engine to load and display webpages. There are two different ways to achieve WebView:Step 1:1. instantiate the WebView component in the Activity: WebView webView = new
This article describes the development of the SOCKET server and client. In this article, data is not received asynchronously. There are too many examples of asynchronous and storage client sockets on the Internet, but their code is very large and
The Android Multimedia Framework provides the ability to retrieve and play back audio, video, and various types of images, so you can easily integrate them into your applications. you can play audio or video from files stored in resources, files in
1. start and close the ADB Service (adb start-server and adb kill-server)According to the author's test, the adb service may be available after the simulator runs for a period of time (this service can be found in the Windows Process, which is used
1. Android library 'xxx. so' not in prelink map error SolutionIt may appear when compiling your Android library.Library 'xxx. so' not in prelink map error,This is caused by the Pre-compilation settings of Android,
This example and the preceding LinearLayout Android ApiDemos example resolution (145): Views-> Layouts-> LinearLayout-> 5. simple Form implements the same function to construct an input Form, but this example uses the RelativeLayout layout. During
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