Original address (http://blog.csdn.net/caoxinst/article/details/8091678)
Recently, I am working on a demo that includes multi-touch processing, socket communication, and collision detection! The completeCodePublished! We encountered some
Introduced in the previous blogAndroid dynamically loads APK --CodeInstall and obtain resources and call intent Components
This article is a supplement to the previous blogThis section describes how to obtain resources such as installed APK
In Android, content related to context is often encountered. In this blog, we will discuss context: in the alertdialog statement. builder = new alertdialog. in Builder (this);, the parameter to be passed is a context. Here we pass in this. So what
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
Recently, I have been studying laucher applications. Today I wrote the wallpaper in four components. The implementation of static wallpaper is relatively simple and I will not describe it here. after referring to the system source code, I made a
The Android platform API does not specifically provide a simple mechanism for skin replacement. This may be because foreign software focuses more on functions and ease of use and is not popular with skin replacement. The system does not provide
1. To use Android: autolink = "all", you only need to add this attribute to textview. Text in textview that contains the URL, phone number, and email will be automatically added to the connection address.
For example:
Android: Id = "@ +
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
Android development specifications-encoding specifications
1. the Java code does not contain Chinese characters. Chinese characters can appear in the comments at most, and Chinese characters can be written in strings. xml;2. The local variable name
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
I. sending MMS:
MMS is much more troublesome than SMS. It can be seen from the parameters of the sendmmsworker function: (Conv, mmsuri, persister, slideshow, sendreq) Context, Uri, pdupersister (PDU is used for MMS ), slideshow contains all the MMS
As mentioned in the previous article, ant must be used to decompress and compress the zip package. After referring to other materials, I added my own opinions:
Here we will explain how to use ant for decompression and its causes:
Java actually
Project Budget: ¥1,000 ~ 2,000 project description:I. functions:1) Close the address book for hundreds of people on the mobile phone and use it on a single machine.2) implement multiple query methods.3) the address book content is stored in a fixed
Control jitter: in fact, it is the control of animation, so that the control can be quickly moved. However, the moving method and time difference need to be controlled.
Android: interpolator = "@ anim/cycle" >Android: fromxdelta = "0"Android:
I have studied handler and logoff message queues before. However, in Android, handler does not enable threads for execution, but is still in the main UI thread, to enable another thread, handlerthread must be used. When using handlerthread, you must
1) sorting
Listview obtains the content data through the adapter. You can sort the data list before providing it to listview:
Private list getdata (){
List List = new arraylist ();
// Add data...
// Sort the list
If (! List. isempty
Sometimes we want to display another layout on one page, but we do not need to occupy too much layout space. In this case, we can consider using drawer layout. This term can be used to make full use of our imagination, I believe that you will be
Click the button to display the dialog box and call the code:
// Select the image: ploygon, line, pointpublic void selectgeometry (view) {showdialog (0 );}
Showdialog is a method of activity. This method displays the oncreatedialog method definition
From: http://my.oschina.net/mybug/blog/59984
Object conditions:
First, the object to be transferred must: Implements serializable
Second, do not include bitmap in the object, or an error will be reported:
Third: At the transfer end:
Intent
Some students found that the CPU does not support virtualization when installing the virtual environment with the book CD, so I made a virtual environment that does not require virtualization, using virtual box, UBUNTU linux10.04 lts (around 4 GB)
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