I have never touched surfaceview before, and now the project needs to be used. I found that the background of surfaceview becomes dark when it is being drawn (canvas drawing. I tried to set it as background transparency in XML, but it didn't work.
// The keyboard pops up after the interface is loaded. The main reason why the keyboard cannot be popped up is Android.ProgramThe screen is not drawn completely, so a certain delay occurs. The soft keyboard is displayed. Timer timer = new timer ();
The differences between the two registration types are:
1) The first is not a resident broadcast, that is, the life cycle of the broadcast following the activity. Note: remove the broadcast receiver before the activity ends.
2) The second type
Android Learning Series (20) -- parse JSON in APP data format (Basic Introduction and good introduction to JSON)Http://my.eoe.cn/874311/archive/1936.html
Parsing data files in Android (JSON parsing [retrieving data from the server and parsing it,
Seejoplayer video player on Android platform (function introduction and source code parsing, with source code)Http://www.blogjava.net/zh-weir/archive/2011/03/23/310617.html
Use vitamio to create your android universal player (10)-local playback (
Menu can be said in any
Program Is indispensable, and Android is no exception. The menu creation process in Android is as follows:
Public static final int main = menu. first;
Public static final int dictionary = menu. First + 1;
Public static final
After switching between the landscape and landscape screens, the activity will re-execute the oncreat function, but Android: screenorientation = "is added to mainfest. xml of the android project"User"Android: configchanges ="Orientation |
Px: Pixels (pixels). Different devices have the same display effect. Generally, we use hvga to represent 320x480 pixels, which is usually used.
PT: Point is a standard length unit, 1pt = 1/72 inch, used in the printing industry, very easy to use;
Part 1:
Because the camera Preview Data in android can only be in the imageformat. nv21 format, decoding should go through a twists and turns.
Camera mcamera = camera. open (); camera. parameters P = mcamera. getparameters (); p. setpreviewformat
During project creation, unit tests are usually required to test whether the code you write runs normally. Some potential bugs can be killed at the birth stage of the program, in particular, for large-scale projects that cooperate with teams, unit
Today, I learned about the file access technology of Android, and many times I need to use file access functions in Android, that is, we can store the desired file, read the file content, and perform other operations on our mobile phone or SD card
I. What methods does the Linux system use for inter-process communication?
1. Socket;
2. Name pipe name pipeline;
3. Message Queue;
4. Singal semaphore;
5. share memory shared memory;
2. What is the communication mode of the Java System?
1. Socket;
Android: layout_above = "@ ID/label": place the bottom of the control above the given control
Android: layout_below = "@ ID/label" place the top of the control under the given control
Android: layout_toleftof = "@ ID/label" align the right edge of
Theme styles defined by the Android platform:
Android: theme = "@ Android: style/theme. Dialog" shows an activity as a dialog box
• Android: theme = "@ Android: style/theme. notitlebar" does not display the application title bar• Android: theme = "@
Address: http://www.linuxidc.com/Linux/2012-01/52649.htm
Is the recommended color value for Android interface development in the help document. For details, refer:
Add some common color values:
# ffffff # fffff0 # ffffe0 # FFFF00 #
To create an input method for the input text box or other views, you must inherit the inputmethodservice class. Inputmethodservice provides a lot of basic implementations of input methods, terms of Management Status, visibility of input methods, and
Android provided by Google contains the original Android target machine code, host compilation tools, and simulation environment. After the code package is decompressed, the first-level directories and files are as follows:
.
| -- Makefile (Global
Android timer is generally written below
Java code
Timer timer = new timer ();
Timertask task = new timertask (){
Public void run (){
Message message = new message ();
Message. What = 1;
Handler. sendmessage (Message );
}
}
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