1. What can it cache?Common strings, json, serialized java objects, and byte numbers.
2. What are its characteristics?
Main features:
1: Light, light to only one JAVA file.
2: configurable. You can configure the cache path, cache size, and cache
Display display = getWindowManager (). getDefaultDisplay (); // obtain the screen width and height.
Window window = getWindow ();
LayoutParams windowLayoutParams = window. getAttributes (); // obtain the current parameter value in the dialog
The following example runs on the anroid platform. Tested On the anroid 3.1 platform.
There is usually a business requirement that adds an advertisement before playing a video. This advertisement may be either an image or a video or something else.
The IPCThreadState object maintains two variables.
Pid_t mCallingPid;
Uid_t mCallingUid;
From the variable name, the two variables Save the PID and UID of the process, and since these two variables are maintained by the IPCThreadState
I plan to perform android automated testing in the future. Today I found a very good tool. I will study it later:
The download address is as follows:
Http://code.google.com/p/robotium/downloads/list
This is the configuration method:
1.
Game components:
1) Window management: This is responsible for creating a window and coping
Things like closing the window or pausing/resuming the application on Android.
2) Input: This is related to the window management module, and keeps
I. As we all know, Hanlder is a bridge between threads and activities. We will use threads in many applications. Some users may improperly process the threads. When the program ends, the threads will not be destroyed, it is always running in the
In the past two days, slice-shaped tailoring is required for the project.
Find relevant information online
Find a method, but it is indeed wrong to use it, and you cannot randomly specify the very vertical coordinates of the center
I checked
Let's talk about the call in two cases, namely the call of scripts in the same game object and the call of scripts of different game objects;
1. In a game object, the script call is very simple, as shown below:
Var Contro;
Control =
Implementation:
Implementation Method:
The inherited View Class re-draws a circle by itself, adds the custom inherited View class to the current Activity, and adds an onTouchLitener event to the custom View control.
Custom components inherit
In an application, there are usually multiple activities, each of which corresponds to a UI layout file. In general, in order to maintain a uniform style between different windows, many identical la s will be used in these UI layout files. If we
Android is essentially a Linux kernel-based system, that is, Android is a Linux operating system. Most of the time, however, they run on ARM-based devices, such as Android phones and tablets. The Android driver is actually a Linux driver. Therefore,
In android, each touch event contains a series of actions, such as ACTION_DOWN, ACTION_MOVE, and ACTION_UP. Here we need to clarify the difference between this touch event and an ACTION. Touch events include ACTION_DOWN, ACTION_MOVE, ACTION_UP, and
Original Problem description: I want to get the following results in the android app: the background image I used is a nine-patch png image. I use a text view to implement it, but this is not the result. What should I do? Solution: Use a TextView?
1. android supports sleep wake-up 2. android OS provides a power management interface and several power lock mechanisms. The PowerManager class opens the power management interface for applications. You can use PowerManager to create a PowerManager
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