1. The core idea of garbage collection algorithm
The Java language establishes a garbage collection mechanism for tracking objects that are in use and for discovering and reclaiming objects that are no longer in use (references). This mechanism can
Android's weight learning is a must, if the UI layout uses only DP and SP, and so on, it makes the layout extremely inflexible, after all, the screen size of each phone is different, let alone the ipad or something like that, So it's also a small UI
This article illustrates the ScrollView nested GridView method of Android programming development. Share to everyone for your reference, specific as follows:
A few days ago in the development of the need to scrollview nested gridview, because these
Because there is no art, so you can only do it yourself.
XML written in the layout folder
Method 1: Add the above code to the layout XML file inside the layout
Effect chart
Draw lines with shape line or rectangle in the Drawable
I. OverviewHandler, Looper, and messages are all related to the Android asynchronous message processing thread. So what is called an asynchronous message processing thread?After the asynchronous message processing thread starts, it enters an
0, the basic review propertyanimation, property animation, as the name implies is the use of object property changes to form the effect of animation. The class of the property animation can be represented by animator this abstract class, usually
Today, I saw the pro Android 3 menu in the chapter, the entire menu system of Android has a further understanding, so tidy up the notes and share with you.
PS: The Pro Android 3 is highly recommended, the best Android book I've seen so far, and the
The example of this article describes the simple timer implementation for Android programming. Share to everyone for your reference, specific as follows:
Here, using ContextMenu (Context menu), Chronometer implements a simple counter.
Main.xml:
Let's take a look at some of the common exit methods (not elegant way)
First, the container-type
Create a global container, store all the activity, and loop through the finish when exiting
Import java.util.ArrayList;
Import
This feature is andorid4.4 support, at least api19 can be used, that is, if the Android machine is less than 4.4, immersion notification bar is ineffective. Here is a brief introduction to the method used.
/**
* Set the notification bar
This article is about the fundamentals of implementing thermal updates in Android.
First, ClassLoaderWe know that Java loading the corresponding class at runtime is implemented through ClassLoader, ClassLoader itself is an abstraction, and Android
Custom view can probably be divided into:
Inherit view
Combination View
own picture (with paint and canvas)
Custom ViewGroup (widget)
Recently chatted with schoolmate, then prepares oneself realizes a ImageButton to practice
You can customize themes and styles in Android. style, which means style, we can take some unified attributes, such as long, wide, font size, font color, and so on. You can create a new Styles.xml file in the Res/values directory, in which there are
Recently learned Android found that a lot of books are introduced preference preferences this thing, but most of the books are directly on how to use, for its use and origin are not mentioned, the author of this practice is very despised.
Here,
I. Inheriting listactivity, using Arrayadapterusing ListView and Arrayadapter layouts is the simplest of ListView layouts, and first we'll create a component to display data, such as Main.xml
The activity code is as follows
This example describes four startup modes for activity in Android programming. Share to everyone for your reference, specific as follows:
Activity Initiation method has four kinds, namely:
StandardSingletopSingletaskSingleInstance
You can set up
First, let's make sure what the service is.
Service is the services in the Android system, it has so many features: it cannot interact directly with the user, it must be explicitly started by a user or other program, it has a higher priority, it
I've written a similar tool for the Android system's cropped image. The feature was largely implemented, but left a call question: How do I invoke the cropping tool from my program and get the cropped picture?
In fact, this is also very simple, is
This article describes the Android programming implementation of simple UDP Client. Share to everyone for your reference, specific as follows:
The code is debugged inside the 4.2.2 through
1. Remember to add permission
Note: After
The example in this article describes the way Android programs implement TCP clients. Share to everyone for your reference, specific as follows:
Because the project needs to implement a TCP client side, on the internet to find a lot of examples are
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.