Public Enum config {// These native values must match up with the enum in skbitmap. h alpha_8 (2), rgb_565 (4), argb_4444 (5), argb_8888 (6); config (INT Ni) {This. nativeint = ni;} final int nativeint;/* package */static config nativetoconfig (INT
Setxfermode
Set the mode when two images are intersecting
We know that under normal circumstances, drawing on an existing image will add a new shape to it. If the new paint is completely opaque, It will completely block the paint below;
The previous article introduced the implementation of custom listview with checkbox. This article describes the implementation of custom expandablelistview with checkbox. The principle is the same as that of listview, you only need to modify the
Debugging configuration of Android ndk on Ubuntu
When debugging local C/C ++ on Android, you can directly use GDB to debug it in the command line, which is very troublesome. The Sequoyah plug-in is used to integrate the debugging function into
1. Handler Learning
Because of the time-consuming operations that sometimes need to be performed, if these operations are placed in the main thread, it is easy to cause the program to be suspended, and the final result is a system crash. Therefore,
Monkey is a self-designed stress testing tool for Android.
It can run in a simulator or on a real device. It sends a pseudo-random user event stream to the system to test the stress of developing applications.
The basic syntax is as follows:Monkey
Android screen resolution adaptation is a pain thing ah, engaged in a brother one afternoon, Xiaomi mobile phone 480*800 Samsung GT-I9220 1200*800 most mobile phones on the market are 480*800, to meet the adaptive corresponding to each resolution to
Step: Obtain the URL object URL through the new URL (target URL string) ----> call the openconnection method of the URL to obtain an httpurlconnection object connection ----> call the getinputstream method of connection to obtain an inputstream
Android sends SMS messages
Layout layout file main. xml
Strings. xml
Hello smsactivity! text message sender enter the mobile phone number enter the text message content send SMS message sent successfully
[1] installing the NFS service on a PC
Sudoapt-Get install nfs-kernel-Server
Configure the NFS server and set the mounted directory to/nfs/rootfs.
Sudovi/etc/exports
Add a line at the end of the exports file:
/Nfs/rootfs * (RW, sync, no_root_squash)
Reprinted: http://blog.csdn.net/kellycan/article/details/6457030
In the android development process, when we only need to compile a modified module, the MM command can enable you to compile the entire android project, instead of compiling the
From: http://blog.csdn.net/wlr_tang/article/details/6792387
[1] installing the NFS service on a PC
Sudo apt-Get install nfs-kernel-Server
Configure the NFS server and set the mounted directory to/nfs/rootfs.
Sudo VI/etc/exports
Add a line at
When the Android: configchanges of the activity is not set, the split screen will re-call each Lifecycle
When setting the activity's Android: configchanges, the split screen will not re-call the Declaration cycle, but will only execute the
1. WebService. getvcardbyuserno (string userid, string userno); this is the encapsulated WebService interface.
2. When ksoap2 calls this interface twice in a program, it throws an exception when parsing the result returned by the second
After two days of migration, ffmpeg0.7.6 to adnroid is successfully transplanted. The following problems are encountered during the transplantation process. Please indicate the source.
Tools:
Ffmpeg-0.7.6Android-ndk-r4bUbuntu 10.11Path: Root \
Method 1:
The canvas class is used for drawing. you can use the canvas class member functions to draw any part of the image as you wish. canvas. cliprect: Set the display area canvas. drawbitmap: Drawing example: bitmap B = bitmapfactory.
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