This article describes how to parse XML in Android.
Android basics 09: XML file parsing 01 Sax
Android basics 09: XML file parsing 02 dom
Android basics 09: XML file parsing 03 pull
In this section, we use the DOM method for processing.
I have learned a lot about JUnit In the android SDK, but I feel that there have been several problems that have not been solved (I wonder if you feel the same). JUnit testing is automated, there is no need for any operation at all. I have not found
Normally, if the Android app encounters an unhandled exception, a dialog box similar to the following will appear, and then force the app to exit:
If you want to change this default behavior, such as displaying a custom dialog box when an
This series of articles on application information:
Android basics 15: get Android Application (Package) Information 01-Info class
Android basics 15: get Android app (Package) Information 02-size
Android basics 15: get Android Application (Package)
After some animation, we found that the animation has an interpolator attribute. What is it?
There are also a lot of articles explaining interpolator on the internet, basically at the level of directly translating the meaning of the SDK. After
On the Android platform, you can use simple API for XML (SAX), Document Object Model (DOM), and the pull parser that comes with Android to parse XML files.
1. xml files to be processed and the person class
The XML file to be parsed in this example
This series of articles on application information:
Android basics 15: get Android Application (Package) Information 01-Info class
Android basics 15: get Android app (Package) Information 02-size
Android basics 15: get Android Application (Package)
This week, I started reading the book "deep understanding of Android volume 1". I encountered many problems when I downloaded the android source code in Chapter 1. It took a long time to get down to the android source code.
The problems are
Is a special image format in the application software development of the andriod platform. The file extension is .9.png.The smart phone has the automatic horizontal screen function. The same interface will change the display direction with the
1. Overview
Menus are an important part of activity. It provides a great way for user operations. Android provides a simple framework to add standard menus to programs.
There are three types of menus:
Option menu
The main set of menu items of an
This article will sort out the series of articles "android hands-on teach you how to develop launcher" on www.bangchui.org. This article briefly introduces the implementation of the basic functions of lancher. After reading this article, I will have
Today, I read the source code of the Bluetooth chat tool that comes with andriod. I wanted to write a source code analysis article, but I saw that some online experts have already written a very well-developed article, so here is just a reference:
This is a simple Android Application designed by jwood to control the conference time, similar to the stopwatch countdown. StandupTimer is strictly set according to the MVC mode, and you can also learn how to use the timer.
To learn the source code
Android UI operations are not thread-safe, and only the main thread can operate the UI. At the same time, the main thread has a certain time limit on UI operations (up to 5 seconds ). To perform some time-consuming operations (such as downloading
Today, let's talk about how to put tabhost in tabhost.Let's take a look at the effect.
Tabhost Layer
Two-layer tabhost (internal tabhots on top), as shown in the right figure above.
Two-layer tabhost (the inner tabhots is below)
Let's talk about
Timers is mainly used to run some tasks in the background. You can set timer as the daemon thread. When cancel is called, all scheduled tasks are not canceled.Tasks in timer are executed sequentially. If a task takes a long time to complete, it may
1. Android event generation
This part is difficult and involves the basic knowledge of the entire android architecture, including the handling of events in the Linux system.
This part of content comes from the android window mechanism analysis ------
This topic describes services. There are two articles:
Basic knowledge of Android 05: Service 01 of four components
Android basic knowledge 05: four major components-service 02: Remote Call
Android basic knowledge 05: four major components-service 03
Recently, openwnn open source input method has been studied. The open source code of the input method does not convert the C code into the so file. Therefore, you need to do this step by yourself.
To achieve the above objectives, I learned how to
This topic describes how to customize a view.
1. Custom View
For beginners, they are used to the traditional page layout method of Android. The Code is as follows:
However, the layout method above can help us develop simple applications.
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