Close the application normallyProgram:
When an application is no longer used, you usually need to disable the application. You can use the following three methods to disable the Android Application:
Method 1: first obtain the ID of the current
I 've been engaged in Android development over the past few days. I 've watched some development videos and made a summary:
1. First, we should find the game development resources
Find the image and sound file and put it under res for convenient
In some cases, you need to obtain the signature information of a specific APK (installed or not installed), such Program Self-detection, trusted third-party detection (application market), which is installed by the system. There are two ways to use
Reprinted: http://www.cnblogs.com/Amandaliu/archive/2011/06/14/2080948.html
Use selector like setting the selected row item background image in listvew. However, the color settings here should be set in textview in listview.
Xmlns: Android =
Recently, according to the company's needs, I wrote a demo sorted by the first letter of the city. The principle is to get the city name and convert the city name to the corresponding pinyin, after sorting pinyin, a sequence is obtained, which can
In the development of applications, the background of listview or button control should be designed in many cases. The following summarizes the usage of Android selector:
1. Configure Android selector in drawable.
Save the following XML file as your
Multi-thread breakpoint download flowchart:
Introduction to multi‑thread resumable download principles:
When downloading, multiple threads can occupy more resources on the server to speed up the download.
When downloading data on the mobile
Broadcastreceiver first knowledge:
The broadcast receiver (broadcastreceiver) is used to receive the broadcast intent. The broadcast intent is sent by calling context. sendbroadcast () and context. sendorderedbroadcast. Generally, a broadcast intent
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 application is started, Android will first enable a main thread (that is, the UI thread). The main
Introduction to asyncqueryhandler:
Asynchronous query operation help class, which can process addition, deletion, and modification (data provided by contentprovider)
Use Cases:
In general applications, you can use contentprovider to operate
Classification of thread Systems
1.1 The operating system kernel implements the thread model (Core Thread)
-Windows-Multi-to-multi-model of threads and processes
High Thread Efficiency
Shows the window thread structure:
1.2 threads (user
1. Message mechanism for inter-thread Communication
1. Message Introduction
Frameworks \ base \ core \ Java \ Android \ OS \ message. Java
Message is the carrier of information transmitted between threads. It contains the Message description
The android virtual machine is a register-based Dalvik, and its maximum heap size is generally 16 Mb. However, Android uses the Java language, so to a large extent, the memory mechanism of Android is equivalent to the memory mechanism of Java. At
Traceview is a good performance analysis tool on the Android platform. It allows us to understand the performance of the program we want to track in a graphical way, and can be specific to the method.
In the SDK path \ tools directory.
1. When
If the android application installation package APK is developed on a later Android jar, it cannot be run on a later Android SDK, therefore, we need to replace the developed application with an android jar package of a lower version to re-compile an
Use your mobile phone to obtain the longitude and latitude of the location:
Location is often used in Android development. For example, you can obtain the weather by longitude and latitude, and obtain the detailed address of the region based on
Because the company's O & M needs and applications need to add application promotion statistics, it usually needs to correspond to 20 or 30 channels, generating applications of different channel packages one by one according to the normal method,
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