In AndroidGamesDevelopmentTour 2: We talked about view and surfaceview.OfDifferences: Today, android123 focuses on the methods and notes of the android graphics display base class from the View class. (Text/Android Development Network)
Common
The bionic library is a C library that has been "trimmed" by Google. It lacks system calls such as setxattr, getxattr, fsetxattr, and fgetxattr. To set security labels for file objects, you must add these system calls to the bionic library as
Install and configure JDK and eclipse. Pay attention to the installation and configuration of the ADT and SDK.
① SDK installation and configuration
Download Android SDK tools: http://developer.android.com/sdk/index.html
Decompress the package
The Drag Control Principle is actually very simple. Rewrite the ontouchevent method of the activity to obtain the X and Y coordinates based on the position of the finger, and then use absolutelayout to set the specified control to this position.
1. CTRL + D: The copy and paste operations are set. If a selected part is selected, the selected part is copied and followed by the selected part.
Paste it out. If no part is selected, copy the row where the cursor is located and paste it below
ArticleDirectory
This problem occurs when you dial pppd in Android:
E/pppd (366): Can't create lock file/var/lock/LCK .. ttyusb0: no such file or directory
After several points, I finally found a solution.
Solution: create two directories:/
In many cases, we need to access the resource files in Android. These resource files are mainly divided into two types, these files are not compressed when they are packaged into APK files; the other is files under res. When these files are packaged
Selection is a tool class. It is a tool class for range selection. its own methods are static. I tested all the methods and stayed up late again. the test is performed in an ontouchevent method that inherits the edittext subclass. this is a summary.
This topic describes how to play audio and video.
The source files for playing audio and video can be three types:
Source file (under Res/raw or assets)
File System (sdcard)
Streaming Media (network)
1. play audio files
You can use
The viewpager control released by Google in Android SDK is very convenient for developers to switch between left and right pages. For more information, see http://jameszhao84.iteye.com/blog/1344584. However, it is found that when data is deleted or
We all knowAndroidMediumAdapterThe role isListviewThe bridge between the interface and data. When each item in the list is displayed on the pageAdapterOfGetviewMethod returnsView. Ever wondered? In our list, we have1000000 itemsWhat will happen?
1. re-write the following method in service. This method has three return values. start_sticky indicates that the service is automatically overwritten after it is killed.@ OverridePublic int onstartcommand (intent, int flags, int startid ){Return
I just caught the flash yesterday. Today I will summarize it briefly. I have not studied it in depth, but the effect does.
First, find the function code executed when taking a picture of Android in:
Packages/apps/camera/src/COM/Android/camera.
Mbase points to refbase
Mrefs points to weakref_impl
In terms of perception, smart pointers are used on new objects. Because New allocates a fast memory and returns a pointer, the system does not know that the user no longer uses this memory.
Project name: andtriplog-Travel Diary
A good open-source project for learning and positioning, using Google's positioning system,
However, Google's base stations are very unstable in China and are basically unavailable.
In the spirit of self-help
Transplantation of mprc Android 2.1
Android 2.1 pop-up Screen
During the porting process, the small kernel does not support double framebuffer, which causes the screen to be constantly flushed. Finally, we use the following
Most Android controls inherit from the view type. Therefore, they generally inherit the View class when using custom controls. However, for highly efficient, game-level graphics, or players, the common view class is
The surfaceview class is required
1),Powermanager. Java
This file definesPowermanagerClass is used by other files.Nest class:
Public class wakelock,Nest classThere are the following methods:
Public void setreferencecounted (Boolean value)Public void acquire ()Public void
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