The last time I explained the basic usage of Android Bluetooth, I went into depth and discussed the hidden APIs of Bluetooth. Anyone who has used Android settings (Setting) knows that pairing and unpairing can be established after Bluetooth search,
Author: Sun Dongfeng
1. Obtain the Android source code
Git is an open source distributed version control software developed by Linux Torvalds to help manage Linux kernel development. It is different from a centralized version control system such
1. Requirement DesignCreate a login table in the Android database, including the password and account fields.
Implement two activity applications, one of which provides two in-force boxes, respectively entering the password and account, and
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
As an embedded scripting language, Lua can be embedded into various environments. Next we will demonstrate how to embed Lua into Android.
Lua: the latest version 5.2.1Http://www.lua.org/
The latest version of LuaJava, 1.1
Http://www.keplerproject.
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
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
In addition to using MediaPlayer to play videos, Android also provides a VideoView to play videos more conveniently. VideoView is a subclass of View. It can be used in all places that support View, including its definition in the AndroidManifest.
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,
Task and Back Stack
An application usually contains multiple activities.Each activity shoshould be designed around und a specific kind of action the user can perform and can start other activities.For example, an email application might have one
1. First set its default encoding in the CaptureActivity class.
[Java]DecodeFormats = null;CharacterSet = "ISO-8859-1 ";2. You can convert the corresponding encoding in the Activity to retrieve the result. Here I am processing it in the
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