In the android class library, various packages are written as Android. *. The important packages are described as follows:
Android. app: provides high-levelProgramModel, provide basic Runtime Environment
Android. content contains various
In Android development, to prevent memory overflow, images are usually compressed when they are displayed.Code:
Step 1: first, compress the image size and cell phone screen size, and then compress the image size. After the size is compressed,
1. @ compliance
@ Indicates the resource to be referenced. It is declared as a resource reference. Format: @ [Package:] type/NameFor example:
@ Android: String indicates the referenced system (Android. *) resource.@ String refers to referencing
First, I feel
The interface is clean.
Fast Response Speed
The built-in app manager is also very good.
In addition, I think a highlight is the addition of the local search function.
This is a major advantage of Google.
Many may want to ask how to implement animation? How to draw a person's things? This is my previous android game.When I used android to develop a game, it was troublesome to draw a picture, and the texture had to be written.Code, AnnoyingVery well,
Students with programming experience know that if there is no event, the game objects will not be controlled, so they will not be able to play the game, let's talk about the unity event,
I will mainly explain button events, keyboard events, and
The next day I learned about Android development. The goal is to participate in the Google Android competition and win a prize. However, the reward is small and the accumulated development experience is large, you can also find a good job on the day
In this period of time, as a series of mobile phones in Moto detonated the Android Market, all eyes of the mobile market are concentrated on the new star of Android. For a moment, chip companies, equipment companies, software companies, and Internet
Today, I tried to use the following Android scroll wheel to read the test file from a small test.
It mainly uses the scrollto function and getscrolly ()
The program click the button to scroll down to 2222 and display
Main. xml
Android: Id = "@ +
1. Basic Knowledge
A very simple example: socket (socket) = IP address + TCP/UDP port
Three-way handshake
Http://www.2cto.com/net/201210/161418.html
Http://blog.csdn.net/petershina/article/details/8616847
Http1.0 is a non-persistent
Independent Development of Android programs, a person is both a programmer and an artist, the former is easy to do, the latter is embarrassed, although the PS will be used, but some icon pictures are best to use ready-made.
And other popular app
A 9*9 two-dimensional square piece array obtained through piecemanager, where we plot the 1-8 lattice, because the outer lattice will be used to draw lines, the effect is as follows:
Now we can use this array to draw the basic interface.
The
First, we will draw two buttons on the canvas. We will use two images for representation, one for regret, and the other for re-start. We will use the shortlist to store every step of our operations, then extract the operations of each step from the
By default, the animation is only valid for the current parent layout range. Sometimes, we need to do the floating effect in the full screen range. I think there are two actual practices:
1. Execute the animation with absolute coordinates
Set the
In this survey, I want to achieve the following: Click the Pictures button to obtain all the pictures in the mobile phone, select an image, and display it in the imageview.
Application Scope: select an image when uploading an image, similar to
From: http://blog.csdn.net/keyboard_workers/article/details/7620566
Runonuithread is the internal method of the activity. It is best to specify the context when using it ).
New thread (New runnable (){
@ OverridePublic void run (){System. Out.
In fact, it is very easy to draw a triangle, that is, there are four triangles, so the triangle will be painted, it is best to study it first and then look at the Code, it is not difficult, try it
Package WYF. swq;Import java. NiO. bytebuffer;
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